Merge pull request #386 from jdowner/develop-iot
iot: only add the 'done' field when all devices are done
This commit is contained in:
commit
4fa5dedc47
1 changed files with 1 additions and 1 deletions
|
@ -482,10 +482,10 @@ class XEP_0323(BasePlugin):
|
|||
if result == "done":
|
||||
self.sessions[session]["commTimers"][nodeId].cancel()
|
||||
self.sessions[session]["nodeDone"][nodeId] = True
|
||||
msg['fields']['done'] = 'true'
|
||||
if (self._all_nodes_done(session)):
|
||||
# The session is complete, delete it
|
||||
del self.sessions[session]
|
||||
msg['fields']['done'] = 'true'
|
||||
else:
|
||||
# Restart comm timer
|
||||
self.sessions[session]["commTimers"][nodeId].reset()
|
||||
|
|
Loading…
Reference in a new issue