]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/system/ArbiterP.nc
Oops. On last commit I removed the returning of SUCCESS from ArbiterP.... back in...
[tinyos-2.x.git] / tos / system / ArbiterP.nc
index fd278ce3d8ecdb5dfea3cdb7d9c4f74b72ad8272..bffe84c05e6a024cb77dea6d1e3e578760f893a1 100644 (file)
@@ -112,13 +112,15 @@ implementation {
           reqResId = call Queue.dequeue();
           state = RES_GRANTING;
           post grantedTask();
+          call ResourceConfigure.unconfigure[id]();
         }
         else {
           resId = default_owner_id;
           state = RES_CONTROLLED;
+          call ResourceConfigure.unconfigure[id]();
           signal ResourceDefaultOwner.granted();
         }
-        call ResourceConfigure.unconfigure[id]();
+        return SUCCESS;
       }
     }
     return FAIL;