repositories
/
mTask.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3bb3dd
)
don't reuse shares
author
Mart Lubbers
<mart@martlubbers.net>
Fri, 3 Mar 2017 08:41:59 +0000
(09:41 +0100)
committer
Mart Lubbers
<mart@martlubbers.net>
Fri, 3 Mar 2017 08:41:59 +0000
(09:41 +0100)
Devices/mTaskDevice.icl
patch
|
blob
|
history
diff --git
a/Devices/mTaskDevice.icl
b/Devices/mTaskDevice.icl
index
28d44c4
..
a3b99a1
100644
(file)
--- a/
Devices/mTaskDevice.icl
+++ b/
Devices/mTaskDevice.icl
@@
-84,7
+84,8
@@
deleteDevice d = upd (\(r,s,ss)->(r,s,True)) (channels d)
sendToDevice :: String (Main (ByteCode () Stmt)) (MTaskDevice, MTaskInterval) -> Task ()
sendToDevice wta mTask (device, timeout) =
- get bcStateStore @ toMessages timeout o toRealByteCode (unMain mTask)
+ get bcStateStore
+ @ (\st->toMessages timeout (toRealByteCode (unMain mTask) {st & sdss=[]}))
>>= \(msgs, st1)->set st1 bcStateStore @ toSDSRecords
>>= \sdss->upd ((++)sdss) sdsStore//MTaskShareaddToSDSShare
>>| makeShares sdss