From: razvanm Date: Thu, 17 Jan 2008 22:27:38 +0000 (+0000) Subject: Allow to consecutive dissemination commands (-d or -dr) without requiring an unlockin... X-Git-Tag: release_tinyos_2_1_0_0~594 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=6010f8dab7c8700295895fb7214dadc2e4d8993d Allow to consecutive dissemination commands (-d or -dr) without requiring an unlocking operation (-s or -ls). --- diff --git a/tos/lib/net/Deluge/DelugeManagerP.nc b/tos/lib/net/Deluge/DelugeManagerP.nc index 2417de6c..3b97e9e5 100644 --- a/tos/lib/net/Deluge/DelugeManagerP.nc +++ b/tos/lib/net/Deluge/DelugeManagerP.nc @@ -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);