summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Network/BitTorrent/Exchange/Wire.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Network/BitTorrent/Exchange/Wire.hs b/src/Network/BitTorrent/Exchange/Wire.hs
index 4bd342ca..0414ebe7 100644
--- a/src/Network/BitTorrent/Exchange/Wire.hs
+++ b/src/Network/BitTorrent/Exchange/Wire.hs
@@ -56,6 +56,7 @@ module Network.BitTorrent.Exchange.Wire
56 56
57 -- ** Query 57 -- ** Query
58 , getConnection 58 , getConnection
59 , getSession
59 , getExtCaps 60 , getExtCaps
60 , getStats 61 , getStats
61 , getMetadata 62 , getMetadata
@@ -571,6 +572,9 @@ getStats = lift $ use connStats
571getConnection :: Wire s (Connection s) 572getConnection :: Wire s (Connection s)
572getConnection = lift ask 573getConnection = lift ask
573 574
575getSession :: Wire s s
576getSession = lift (asks connSession)
577
574{----------------------------------------------------------------------- 578{-----------------------------------------------------------------------
575-- Wrapper 579-- Wrapper
576-----------------------------------------------------------------------} 580-----------------------------------------------------------------------}