diff options
author | James Crayne <jim.crayne@gmail.com> | 2018-11-03 06:37:40 -0400 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2018-11-03 06:37:40 -0400 |
commit | d1eea83c508c3a977c5423597f3174cfd86b108d (patch) | |
tree | 124b88b69df5c419388c12b5c1df1cf3d54e2996 /src | |
parent | 822ed11366a9c8bfee6e6c8aa0f1ec548de00181 (diff) |
debug message on sendLossless result
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/Tox/AggregateSession.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Network/Tox/AggregateSession.hs b/src/Network/Tox/AggregateSession.hs index 27258a6f..edb897e0 100644 --- a/src/Network/Tox/AggregateSession.hs +++ b/src/Network/Tox/AggregateSession.hs | |||
@@ -242,7 +242,11 @@ dispatchMessage c msid msg = join $ atomically $ do | |||
242 | imap <- readTVar (contactSession c) | 242 | imap <- readTVar (contactSession c) |
243 | let go = case msid of Nothing -> forM_ imap | 243 | let go = case msid of Nothing -> forM_ imap |
244 | Just sid -> forM_ (IntMap.lookup sid imap) | 244 | Just sid -> forM_ (IntMap.lookup sid imap) |
245 | return $ go $ \con -> sendLossless (transportCrypto (ncAllSessions (singleSession con))) (singleSession con) msg | 245 | return $ go $ \con -> do |
246 | eResult <- sendLossless (transportCrypto (ncAllSessions (singleSession con))) (singleSession con) msg | ||
247 | case eResult of | ||
248 | Left msg -> dput XJabber msg | ||
249 | Right pkt -> dput XJabber ("sendLossLess SUCCESS: " ++ show pkt) | ||
246 | 250 | ||
247 | -- | Retry until: | 251 | -- | Retry until: |
248 | -- | 252 | -- |