summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Tracker.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent/Tracker.hs')
-rw-r--r--src/Network/BitTorrent/Tracker.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Tracker.hs b/src/Network/BitTorrent/Tracker.hs
index 2e599002..aaa08f3c 100644
--- a/src/Network/BitTorrent/Tracker.hs
+++ b/src/Network/BitTorrent/Tracker.hs
@@ -145,7 +145,7 @@ data TSession = TSession {
145newSession :: Progress -> Int -> [PeerAddr] -> IO TSession 145newSession :: Progress -> Int -> [PeerAddr] -> IO TSession
146newSession pr i ps = TSession <$> newTVarIO pr 146newSession pr i ps = TSession <$> newTVarIO pr
147 <*> newIORef i 147 <*> newIORef i
148 <*> newTVarIO psx 148 <*> newTVarIO ps
149 149
150getPeerList :: TSession -> IO [PeerAddr] 150getPeerList :: TSession -> IO [PeerAddr]
151getPeerList = readTVarIO . sePeers 151getPeerList = readTVarIO . sePeers