diff options
Diffstat (limited to 'dht/src/Network/BitTorrent/MainlineDHT.hs')
-rw-r--r-- | dht/src/Network/BitTorrent/MainlineDHT.hs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dht/src/Network/BitTorrent/MainlineDHT.hs b/dht/src/Network/BitTorrent/MainlineDHT.hs index a83cf740..705d7291 100644 --- a/dht/src/Network/BitTorrent/MainlineDHT.hs +++ b/dht/src/Network/BitTorrent/MainlineDHT.hs | |||
@@ -623,11 +623,8 @@ newClient swarms addr udp = do | |||
623 | gen :: Word16 -> (TransactionId, Word16) | 623 | gen :: Word16 -> (TransactionId, Word16) |
624 | gen cnt = (TransactionId $ S.encode cnt, cnt+1) | 624 | gen cnt = (TransactionId $ S.encode cnt, cnt+1) |
625 | 625 | ||
626 | ignoreParseError :: String -> IO () | ||
627 | ignoreParseError _ = return () | ||
628 | |||
629 | client = Client | 626 | client = Client |
630 | { clientNet = addHandler ignoreParseError (handleMessage client) net | 627 | { clientNet = addHandler (handleMessage client) net |
631 | , clientDispatcher = dispatch | 628 | , clientDispatcher = dispatch |
632 | , clientErrorReporter = ignoreErrors -- printErrors stderr | 629 | , clientErrorReporter = ignoreErrors -- printErrors stderr |
633 | , clientPending = map_var | 630 | , clientPending = map_var |