diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-03-23 06:13:56 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-03-23 06:13:56 +0400 |
commit | 61e6254681a1e9e5810a9f2449fadfdc305b1869 (patch) | |
tree | 794f8b288a26f82259df542a90899be1ad1b720c /src/Network/BitTorrent/Client/Handle.hs | |
parent | 7f22b101097707db181f71a5025fe7f39b6e2b3b (diff) |
Notify trackers with Stopped event at closeSession
Diffstat (limited to 'src/Network/BitTorrent/Client/Handle.hs')
-rw-r--r-- | src/Network/BitTorrent/Client/Handle.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Client/Handle.hs b/src/Network/BitTorrent/Client/Handle.hs index 258af3fb..97ffc637 100644 --- a/src/Network/BitTorrent/Client/Handle.hs +++ b/src/Network/BitTorrent/Client/Handle.hs | |||
@@ -110,9 +110,10 @@ openMagnet rootPath uri @ Magnet {..} = do | |||
110 | closeHandle :: Handle -> BitTorrent () | 110 | closeHandle :: Handle -> BitTorrent () |
111 | closeHandle h @ Handle {..} = do | 111 | closeHandle h @ Handle {..} = do |
112 | freeHandle handleTopic $ do | 112 | freeHandle handleTopic $ do |
113 | Client {..} <- getClient | ||
113 | stop h | 114 | stop h |
114 | liftIO $ Exchange.closeSession handleExchange | 115 | liftIO $ Exchange.closeSession handleExchange |
115 | liftIO $ Tracker.closeSession handleTrackers | 116 | liftIO $ Tracker.closeSession trackerManager handleTrackers |
116 | 117 | ||
117 | {----------------------------------------------------------------------- | 118 | {----------------------------------------------------------------------- |
118 | -- Control | 119 | -- Control |