diff options
-rw-r--r-- | examples/dhtd.hs | 2 | ||||
-rw-r--r-- | src/Network/Tox.hs | 2 | ||||
-rw-r--r-- | src/Network/Tox/ContactInfo.hs | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/dhtd.hs b/examples/dhtd.hs index 45a2a682..cdaa73ed 100644 --- a/examples/dhtd.hs +++ b/examples/dhtd.hs | |||
@@ -1989,7 +1989,7 @@ main = do | |||
1989 | now <- getPOSIXTime | 1989 | now <- getPOSIXTime |
1990 | forM_ (either (const Nothing) Just $ Tox.nodeInfo nid saddr) | 1990 | forM_ (either (const Nothing) Just $ Tox.nodeInfo nid saddr) |
1991 | $ \ni -> do | 1991 | $ \ni -> do |
1992 | atomically $ do setEstablished now them acnt | 1992 | atomically $ do setEstablished them acnt |
1993 | setContactAddr now them ni acnt | 1993 | setContactAddr now them ni acnt |
1994 | atomically $ do | 1994 | atomically $ do |
1995 | supply <- readTVar (Tox.listenerIDSupply netCryptoSessionsState) | 1995 | supply <- readTVar (Tox.listenerIDSupply netCryptoSessionsState) |
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs index 7011618c..c1cdb151 100644 --- a/src/Network/Tox.hs +++ b/src/Network/Tox.hs | |||
@@ -379,7 +379,7 @@ mkDefaultDestroyHook roster = \session -> do | |||
379 | ++ ") failure. (Still have sessions: [" | 379 | ++ ") failure. (Still have sessions: [" |
380 | ++ Data.List.intercalate "," (map showsession relevantSessions) | 380 | ++ Data.List.intercalate "," (map showsession relevantSessions) |
381 | ++ "]" | 381 | ++ "]" |
382 | _ -> Right <$> setTerminated now (ncTheirPublicKey session) account | 382 | _ -> Right <$> setTerminated (ncTheirPublicKey session) account |
383 | Nothing -> return . Left $ "(defaultDestroyHook) their is no account! pubkey=" ++ show (key2id (ncTheirPublicKey session)) | 383 | Nothing -> return . Left $ "(defaultDestroyHook) their is no account! pubkey=" ++ show (key2id (ncTheirPublicKey session)) |
384 | case r of | 384 | case r of |
385 | Left msg -> dput XMan msg | 385 | Left msg -> dput XMan msg |
diff --git a/src/Network/Tox/ContactInfo.hs b/src/Network/Tox/ContactInfo.hs index 5f144057..387a6e47 100644 --- a/src/Network/Tox/ContactInfo.hs +++ b/src/Network/Tox/ContactInfo.hs | |||
@@ -116,12 +116,12 @@ setContactAddr now remoteUserKey addr acc = do | |||
116 | Nothing -> update >> notify -- or if we don't have any | 116 | Nothing -> update >> notify -- or if we don't have any |
117 | _ -> return () -- otherwise just wait | 117 | _ -> return () -- otherwise just wait |
118 | 118 | ||
119 | setEstablished :: POSIXTime -> PublicKey -> Account extra -> STM () | 119 | setEstablished :: PublicKey -> Account extra -> STM () |
120 | setEstablished now remoteUserKey acc = | 120 | setEstablished remoteUserKey acc = |
121 | writeTChan (eventChan acc) $ SessionEstablished remoteUserKey | 121 | writeTChan (eventChan acc) $ SessionEstablished remoteUserKey |
122 | 122 | ||
123 | setTerminated :: POSIXTime -> PublicKey -> Account extra -> STM () | 123 | setTerminated :: PublicKey -> Account extra -> STM () |
124 | setTerminated now remoteUserKey acc = | 124 | setTerminated remoteUserKey acc = |
125 | writeTChan (eventChan acc) $ SessionTerminated remoteUserKey | 125 | writeTChan (eventChan acc) $ SessionTerminated remoteUserKey |
126 | 126 | ||
127 | 127 | ||