From 6010f8dab7c8700295895fb7214dadc2e4d8993d Mon Sep 17 00:00:00 2001 From: razvanm Date: Thu, 17 Jan 2008 22:27:38 +0000 Subject: [PATCH] Allow to consecutive dissemination commands (-d or -dr) without requiring an unlocking operation (-s or -ls). --- tos/lib/net/Deluge/DelugeManagerP.nc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.39.2