diff --git a/tos/system/SimpleArbiterP.nc b/tos/system/SimpleArbiterP.nc index 05c7dcec8e..bf7eb4aa26 100644 --- a/tos/system/SimpleArbiterP.nc +++ b/tos/system/SimpleArbiterP.nc @@ -76,7 +76,8 @@ implementation { post grantedTask(); return SUCCESS; } - return call Queue.enqueue(id); + if ((state == RES_GRANTING) && (resId == id)) return EBUSY; + else return call Queue.enqueue(id); } }