summaryrefslogtreecommitdiffstats
path: root/network/tribler/squelch_dht_exceptions.diff
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2014-12-22 23:57:16 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2014-12-22 23:57:16 +0700
commitbe2d8d211fb2d37be85633ce204d10373671db51 (patch)
tree88d7667ea43280224906f4744309e0dac0450c04 /network/tribler/squelch_dht_exceptions.diff
parentbe9c1849b69415ae1036310159daef5bf1878651 (diff)
downloadslackbuilds-be2d8d211fb2d37be85633ce204d10373671db51.tar.gz
slackbuilds-be2d8d211fb2d37be85633ce204d10373671db51.tar.xz
network/tribler: Added (video streaming and bittorrent client).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/tribler/squelch_dht_exceptions.diff')
-rw-r--r--network/tribler/squelch_dht_exceptions.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/network/tribler/squelch_dht_exceptions.diff b/network/tribler/squelch_dht_exceptions.diff
new file mode 100644
index 0000000000..fbc9dba39f
--- /dev/null
+++ b/network/tribler/squelch_dht_exceptions.diff
@@ -0,0 +1,12 @@
+diff -Naur tribler-6.4.0/Tribler/Core/Libtorrent/LibtorrentDownloadImpl.py tribler-6.4.0.patched/Tribler/Core/Libtorrent/LibtorrentDownloadImpl.py
+--- tribler-6.4.0/Tribler/Core/Libtorrent/LibtorrentDownloadImpl.py 2014-12-21 02:24:05.000000000 -0500
++++ tribler-6.4.0.patched/Tribler/Core/Libtorrent/LibtorrentDownloadImpl.py 2014-12-21 03:45:45.000000000 -0500
+@@ -845,7 +845,7 @@
+ public = self.tdef and not isinstance(self.tdef, TorrentDefNoMetainfo) and not self.tdef.is_private()
+
+ result = self.tracker_status.copy()
+- result['[DHT]'] = [dht_peers, 'Working' if ltsession.is_dht_running() and public else 'Disabled']
++ result['[DHT]'] = [dht_peers, 'Working' if dht_peers > 0 else 'Not Working']
+ result['[PeX]'] = [pex_peers, 'Working' if not self.get_anon_mode() else 'Disabled']
+ return result
+