diff options
author | James Crayne <jim.crayne@gmail.com> | 2017-11-15 09:08:36 +0000 |
---|---|---|
committer | James Crayne <jim.crayne@gmail.com> | 2017-11-19 23:40:16 +0000 |
commit | 92a8e6da3edbf53b6f38ab46e7397b13980cbc31 (patch) | |
tree | 76b1e21dc57f1b774c8c864824316ef13d4865e7 /src | |
parent | b9a3988fa64a8d70d5d7e33dcc758fb1f1bdafd8 (diff) |
keep it simple,drop unsupported messages, no returning id
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/Tox/Crypto/Handlers.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/Tox/Crypto/Handlers.hs b/src/Network/Tox/Crypto/Handlers.hs index fc90d01a..9d1da606 100644 --- a/src/Network/Tox/Crypto/Handlers.hs +++ b/src/Network/Tox/Crypto/Handlers.hs | |||
@@ -428,7 +428,7 @@ runCryptoHook session@(NCrypto {ncState, ncHooks,ncSessionSecret,ncTheirSessionP | |||
428 | msgTypMapped16 = msgTypes A.! fromEnum8 (msgID cm) | 428 | msgTypMapped16 = msgTypes A.! fromEnum8 (msgID cm) |
429 | msgTypMapped = fromWord16 $ msgTypMapped16 | 429 | msgTypMapped = fromWord16 $ msgTypMapped16 |
430 | if msgTypMapped16 == 0 | 430 | if msgTypMapped16 == 0 |
431 | then return $ Just id | 431 | then return Nothing |
432 | else | 432 | else |
433 | case Map.lookup msgTypMapped hookmap of | 433 | case Map.lookup msgTypMapped hookmap of |
434 | Nothing -> do -- no recognizing hook, run ncUnrecognizedHook0, loopAgain on result | 434 | Nothing -> do -- no recognizing hook, run ncUnrecognizedHook0, loopAgain on result |