summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2018-11-04 04:26:47 -0500
committerJoe Crayne <joe@jerkface.net>2018-11-04 04:26:47 -0500
commite0fc956953100a375ef1e325d8e5d53b96de0749 (patch)
tree953ca18f7f834ece22562344d07a35e916a37967 /src
parentc5ae81e491af14ff3f6608e284eb33bc9f124745 (diff)
Fixed redundant session close and memory leak.
Diffstat (limited to 'src')
-rw-r--r--src/Network/Tox/AggregateSession.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/Tox/AggregateSession.hs b/src/Network/Tox/AggregateSession.hs
index b248c96f..513896cc 100644
--- a/src/Network/Tox/AggregateSession.hs
+++ b/src/Network/Tox/AggregateSession.hs
@@ -306,7 +306,7 @@ awaitAny :: AggregateSession -> STM (Maybe (Int,CryptoMessage))
306awaitAny c = readTMChan (contactChannel c) 306awaitAny c = readTMChan (contactChannel c)
307 307
308-- | Close all connections associated with the aggregate. No new sessions will 308-- | Close all connections associated with the aggregate. No new sessions will
309-- be accempted after this, and the notify callback will be informed that we've 309-- be accepted after this, and the notify callback will be informed that we've
310-- transitioned to 'Dormant'. 310-- transitioned to 'Dormant'.
311closeAll :: AggregateSession -> IO () 311closeAll :: AggregateSession -> IO ()
312closeAll c = join $ atomically $ do 312closeAll c = join $ atomically $ do