summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/Tox/Crypto/Handlers.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs
index 66de618d..457171a9 100644
--- a/src/Network/Tox/Crypto/Handlers.hs
+++ b/src/Network/Tox/Crypto/Handlers.hs
@@ -1333,7 +1333,7 @@ defaultCryptoDataHooks
1333 ] 1333 ]
1334 1334
1335handlePacketRequest :: NetCryptoSession -> CryptoData -> IO () 1335handlePacketRequest :: NetCryptoSession -> CryptoData -> IO ()
1336handlePacketRequest session (CryptoData { bufferStart=buffstart 1336handlePacketRequest session (CryptoData { bufferStart=num
1337 , bufferData=cm@(msgID -> PacketRequest) 1337 , bufferData=cm@(msgID -> PacketRequest)
1338 }) | let getbytes (OneByte _) = [] 1338 }) | let getbytes (OneByte _) = []
1339 getbytes (TwoByte _ b) = [b] 1339 getbytes (TwoByte _ b) = [b]
@@ -1346,8 +1346,8 @@ handlePacketRequest session (CryptoData { bufferStart=buffstart
1346 case mbOutQ of 1346 case mbOutQ of
1347 HaveHandshake pktoq -> do 1347 HaveHandshake pktoq -> do
1348 getOutGoingParam <-PQ.readyOutGoing pktoq 1348 getOutGoingParam <-PQ.readyOutGoing pktoq
1349 ps <- atomically $ PQ.getRequested getOutGoingParam pktoq buffstart bs 1349 ps <- atomically $ PQ.getRequested getOutGoingParam pktoq num bs
1350 let resend (Just (pkt,n)) = sendSessionPacket (ncAllSessions session) addr pkt 1350 let resend (Just (n,pkt)) = sendSessionPacket (ncAllSessions session) addr pkt
1351 resend _ = return () 1351 resend _ = return ()
1352 mapM_ resend ps 1352 mapM_ resend ps
1353 _ -> return () 1353 _ -> return ()