summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJames Crayne <jim.crayne@gmail.com>2018-06-20 06:29:36 +0000
committerJames Crayne <jim.crayne@gmail.com>2018-06-20 06:29:36 +0000
commitbb1d095085f14b31a0ee285529dbe2dfa964b149 (patch)
tree6ee208c27339a0b56e875e84782de0f091c89ca9 /examples
parent14585ca1eb3ec1d73c4907dcd05676b5b0272a5b (diff)
netcrypto bug fixes
Diffstat (limited to 'examples')
-rw-r--r--examples/dhtd.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs
index 36a9fa68..f6c57130 100644
--- a/examples/dhtd.hs
+++ b/examples/dhtd.hs
@@ -1722,7 +1722,8 @@ main = runResourceT $ liftBaseWith $ \resT -> do
1722 let sockAddr = Tox.ncSockAddr netcrypto 1722 let sockAddr = Tox.ncSockAddr netcrypto
1723 pubKey = Tox.ncTheirPublicKey netcrypto 1723 pubKey = Tox.ncTheirPublicKey netcrypto
1724 tmchan <- atomically newTMChan 1724 tmchan <- atomically newTMChan
1725 let Just pingMachine = Tox.ncPingMachine netcrypto 1725 mbPingMaching <- atomically $ readTVar (Tox.ncPingMachine netcrypto)
1726 let Just pingMachine = mbPingMaching
1726 pingflag = readTVar (pingFlag pingMachine) 1727 pingflag = readTVar (pingFlag pingMachine)
1727 receiveCrypto = atomically $ readTMChan tmchan 1728 receiveCrypto = atomically $ readTMChan tmchan
1728 onEOF = return () -- TODO: Update toxContactInfo, not connected. 1729 onEOF = return () -- TODO: Update toxContactInfo, not connected.