]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/lib/net/Deluge/DelugeManagerP.nc
Allow to consecutive dissemination commands (-d or -dr) without requiring an unlockin...
[tinyos-2.x.git] / tos / lib / net / Deluge / DelugeManagerP.nc
index 2417de6cf5c4cd80c7e1e794a301b0a177bde083..3b97e9e595e42b21e31503ed2b3b1212892927a9 100644 (file)
@@ -90,7 +90,8 @@ implementation
       break;
     case DELUGE_CMD_ONLY_DISSEMINATE:
     case DELUGE_CMD_DISSEMINATE_AND_REPROGRAM:
-      if (call Resource.immediateRequest() == SUCCESS) {
+      if (call Resource.isOwner() || 
+         call Resource.immediateRequest() == SUCCESS) {
        call DelugeMetadata.read(imgNum2volumeId[request->imgNum]);
       } else {
        sendReply(FAIL);