summaryrefslogtreecommitdiff
path: root/src/Network/BitTorrent
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/BitTorrent')
-rw-r--r--src/Network/BitTorrent/Client/Handle.hs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/Network/BitTorrent/Client/Handle.hs b/src/Network/BitTorrent/Client/Handle.hs
index 5bcb2d33..6e2dd0dc 100644
--- a/src/Network/BitTorrent/Client/Handle.hs
+++ b/src/Network/BitTorrent/Client/Handle.hs
@@ -38,7 +38,6 @@ import Network.BitTorrent.Tracker as Tracker
38-- Safe handle set manupulation 38-- Safe handle set manupulation
39-----------------------------------------------------------------------} 39-----------------------------------------------------------------------}
40 40
41-- | Guarantees that we newer allocate the same handle twice.
42allocHandle :: InfoHash -> BitTorrent Handle -> BitTorrent Handle 41allocHandle :: InfoHash -> BitTorrent Handle -> BitTorrent Handle
43allocHandle ih m = do 42allocHandle ih m = do
44 c @ Client {..} <- getClient 43 c @ Client {..} <- getClient
@@ -49,7 +48,6 @@ allocHandle ih m = do
49 h <- runBitTorrent c m 48 h <- runBitTorrent c m
50 return (HM.insert ih h handles, h) 49 return (HM.insert ih h handles, h)
51 50
52-- |
53freeHandle :: InfoHash -> BitTorrent () -> BitTorrent () 51freeHandle :: InfoHash -> BitTorrent () -> BitTorrent ()
54freeHandle ih finalizer = do 52freeHandle ih finalizer = do
55 c @ Client {..} <- getClient 53 c @ Client {..} <- getClient
@@ -60,7 +58,6 @@ freeHandle ih finalizer = do
60 runBitTorrent c finalizer 58 runBitTorrent c finalizer
61 return (HM.delete ih handles) 59 return (HM.delete ih handles)
62 60
63-- |
64lookupHandle :: InfoHash -> BitTorrent (Maybe Handle) 61lookupHandle :: InfoHash -> BitTorrent (Maybe Handle)
65lookupHandle ih = do 62lookupHandle ih = do
66 Client {..} <- getClient 63 Client {..} <- getClient