summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent/Tracker.hs
diff options
context:
space:
mode:
authorSam T <pxqr.sta@gmail.com>2013-06-07 23:27:31 +0400
committerSam T <pxqr.sta@gmail.com>2013-06-07 23:27:31 +0400
commita30bb766e8f2bea19e5a8f1739354d5f7894df1d (patch)
tree5209629a266b6cc007f1e3d24469b70a0a4c6960 /src/Network/BitTorrent/Tracker.hs
parentec063c9e50aa6f19e82e836a33c10d596f766290 (diff)
~ Fix bitfield encoding.
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