summaryrefslogtreecommitdiff
path: root/src/Network.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2021-12-06 22:25:46 +0100
committerRoman Smrž <roman.smrz@seznam.cz>2021-12-07 21:25:38 +0100
commit709a4a3698cb7cf280dbcc63acf2824d88d1a8c6 (patch)
tree5fc0f2da8410b796e46e9ebdb91a3319c5f2fd9a /src/Network.hs
parentd7a8706c3409d7666aa08620e3ae5982797bf0c9 (diff)
Storage: head watch with selector and unwatch function
Diffstat (limited to 'src/Network.hs')
-rw-r--r--src/Network.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network.hs b/src/Network.hs
index 1edc70c..26f1db3 100644
--- a/src/Network.hs
+++ b/src/Network.hs
@@ -293,7 +293,7 @@ startServer opt origHead logd' services = do
sendToPeerS peer packet
_ -> return ()
- watchHead origHead $ \h -> do
+ void $ watchHead origHead $ \h -> do
let idt = headLocalIdentity h
changedId <- modifyMVar midentity $ \cur ->
return (idt, cur /= idt)