diff options
author | James Crayne <jim.crayne@gmail.com> | 2018-11-03 03:00:58 -0400 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2018-11-03 03:00:58 -0400 |
commit | 6b264121bee3b5c08af388f20c5273ef8956bc5e (patch) | |
tree | 76a5eb70b9b7b32498b835d071e5379bd3f50042 /examples/dhtd.hs | |
parent | 041571f971326a94d389f81845c434b2bd6fd365 (diff) |
addDestroySessionHook
Diffstat (limited to 'examples/dhtd.hs')
-rw-r--r-- | examples/dhtd.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs index bef09b75..4ec4a3f4 100644 --- a/examples/dhtd.hs +++ b/examples/dhtd.hs | |||
@@ -1686,6 +1686,7 @@ onNewToxSession sv ssvar ContactInfo{accounts} addrTox netcrypto = do | |||
1686 | return c | 1686 | return c |
1687 | Just c -> return c | 1687 | Just c -> return c |
1688 | 1688 | ||
1689 | addDestroySessionHook netcrypto (Just 0) $ delSession c . fromIntegral . ncSessionId | ||
1689 | addSession c netcrypto | 1690 | addSession c netcrypto |
1690 | 1691 | ||
1691 | return () | 1692 | return () |