summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Exchange/Wire.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/Exchange/Wire.hs')
-rw-r--r--src/Network/BitTorrent/Exchange/Wire.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Exchange/Wire.hs b/src/Network/BitTorrent/Exchange/Wire.hs
index 1cf14809..2c8eb316 100644
--- a/src/Network/BitTorrent/Exchange/Wire.hs
+++ b/src/Network/BitTorrent/Exchange/Wire.hs
@@ -233,7 +233,7 @@ connectWire hs addr extCaps wire =
233 unless (hsInfoHash hs == hsInfoHash hs') $ do 233 unless (hsInfoHash hs == hsInfoHash hs') $ do
234 throwIO $ ProtocolError $ UnexpectedTopic (hsInfoHash hs') 234 throwIO $ ProtocolError $ UnexpectedTopic (hsInfoHash hs')
235 235
236 unless (hsPeerId hs' == fromMaybe (hsPeerId hs') (peerID addr)) $ do 236 unless (hsPeerId hs' == fromMaybe (hsPeerId hs') (peerId addr)) $ do
237 throwIO $ ProtocolError $ UnexpectedPeerId (hsPeerId hs') 237 throwIO $ ProtocolError $ UnexpectedPeerId (hsPeerId hs')
238 238
239 let caps = hsReserved hs <> hsReserved hs' 239 let caps = hsReserved hs <> hsReserved hs'