From bce3947a5335b21cbfeea7b9388551d228b3fed5 Mon Sep 17 00:00:00 2001 From: Sam Truzjan Date: Sat, 15 Feb 2014 04:51:31 +0400 Subject: Add destination path to openMagnet function --- src/Network/BitTorrent/Client/Handle.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Network/BitTorrent/Client/Handle.hs') 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 return $ Handle ih (idPrivate tInfoDict) tses eses -- | Use 'nullMagnet' to open handle from 'InfoHash'. -openMagnet :: Magnet -> BitTorrent Handle -openMagnet = undefined +openMagnet :: FilePath -> Magnet -> BitTorrent Handle +openMagnet rootPath uri @ Magnet {..} = error "openMagnet: not implemnted" -- | Stop torrent and destroy all sessions. You don't need to close -- handles at application exit, all handles will be automatically -- cgit v1.2.3