diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-15 04:51:31 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-02-15 04:51:31 +0400 |
commit | bce3947a5335b21cbfeea7b9388551d228b3fed5 (patch) | |
tree | 0db42a199be564af628778d094fedf4c26f8a45a /src/Network/BitTorrent/Client/Handle.hs | |
parent | 0fa6a0ee5eb1fbf648d3864626430efcbdb4aaae (diff) |
Add destination path to openMagnet function
Diffstat (limited to 'src/Network/BitTorrent/Client/Handle.hs')
-rw-r--r-- | src/Network/BitTorrent/Client/Handle.hs | 4 |
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'. |
86 | openMagnet :: Magnet -> BitTorrent Handle | 86 | openMagnet :: FilePath -> Magnet -> BitTorrent Handle |
87 | openMagnet = undefined | 87 | openMagnet 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 |