diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2014-01-05 17:42:21 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2014-01-05 17:42:21 +0400 |
commit | 5b122b1fab7f2de4942db6100a7363ccdc478a71 (patch) | |
tree | 5f1e6a7b0faec514cb1f1c1d228a037a1a2ff419 /src/Network/BitTorrent | |
parent | a001d6a9415e61a31b8d0abcddb20ed638fd9916 (diff) |
Make Torrent(tAnnounce) field optional
Diffstat (limited to 'src/Network/BitTorrent')
-rw-r--r-- | src/Network/BitTorrent/Client/Swarm.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Network/BitTorrent/Client/Swarm.hs b/src/Network/BitTorrent/Client/Swarm.hs index 1901905c..7fdd1f2f 100644 --- a/src/Network/BitTorrent/Client/Swarm.hs +++ b/src/Network/BitTorrent/Client/Swarm.hs | |||
@@ -24,7 +24,7 @@ data Swarm = Swarm | |||
24 | 24 | ||
25 | newLeecher :: PeerId -> PortNumber -> Torrent -> IO Swarm | 25 | newLeecher :: PeerId -> PortNumber -> Torrent -> IO Swarm |
26 | newLeecher pid port Torrent {..} = do | 26 | newLeecher pid port Torrent {..} = do |
27 | tracker <- connect tAnnounce | 27 | tracker <- connect undefined |
28 | return Swarm | 28 | return Swarm |
29 | { swarmTopic = idInfoHash tInfoDict | 29 | { swarmTopic = idInfoHash tInfoDict |
30 | , thisPeerId = pid | 30 | , thisPeerId = pid |