summaryrefslogtreecommitdiff
path: root/src/Network
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2014-02-15 04:51:31 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2014-02-15 04:51:31 +0400
commitbce3947a5335b21cbfeea7b9388551d228b3fed5 (patch)
tree0db42a199be564af628778d094fedf4c26f8a45a /src/Network
parent0fa6a0ee5eb1fbf648d3864626430efcbdb4aaae (diff)
Add destination path to openMagnet function
Diffstat (limited to 'src/Network')
-rw-r--r--src/Network/BitTorrent/Client/Handle.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network/BitTorrent/Client/Handle.hs b/src/Network/BitTorrent/Client/Handle.hs
index f539d53a..e7ac779c 100644
--- a/src/Network/BitTorrent/Client/Handle.hs
+++ b/src/Network/BitTorrent/Client/Handle.hs
@@ -83,8 +83,8 @@ openTorrent rootPath t @ Torrent {..} = do
83 return $ Handle ih (idPrivate tInfoDict) tses eses 83 return $ Handle ih (idPrivate tInfoDict) tses eses
84 84
85-- | Use 'nullMagnet' to open handle from 'InfoHash'. 85-- | Use 'nullMagnet' to open handle from 'InfoHash'.
86openMagnet :: Magnet -> BitTorrent Handle 86openMagnet :: FilePath -> Magnet -> BitTorrent Handle
87openMagnet = undefined 87openMagnet rootPath uri @ Magnet {..} = error "openMagnet: not implemnted"
88 88
89-- | Stop torrent and destroy all sessions. You don't need to close 89-- | Stop torrent and destroy all sessions. You don't need to close
90-- handles at application exit, all handles will be automatically 90-- handles at application exit, all handles will be automatically