]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Allow to consecutive dissemination commands (-d or -dr) without requiring an unlockin...
authorrazvanm <razvanm>
Thu, 17 Jan 2008 22:27:38 +0000 (22:27 +0000)
committerrazvanm <razvanm>
Thu, 17 Jan 2008 22:27:38 +0000 (22:27 +0000)
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);