summaryrefslogtreecommitdiffstats
path: root/module/network/XDCCBase.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-12-21 18:20:30 +0100
committerGravatar mkaay <mkaay@mkaay.de> 2010-12-21 18:20:30 +0100
commit7fa32641f04e93681d21f04022af673aa2c8c31a (patch)
tree4df57c1c8280a3bcebb619ce4bc04a10cbef1741 /module/network/XDCCBase.py
parentimproved bucket (diff)
downloadpyload-7fa32641f04e93681d21f04022af673aa2c8c31a.tar.xz
new download backend: wrapped deferred, Request compatibility draft, other fixes
added caution's fixes (VeehdCom, PornhubCom)
Diffstat (limited to 'module/network/XDCCBase.py')
-rw-r--r--module/network/XDCCBase.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/module/network/XDCCBase.py b/module/network/XDCCBase.py
index b242c8f27..6d9978b80 100644
--- a/module/network/XDCCBase.py
+++ b/module/network/XDCCBase.py
@@ -34,6 +34,9 @@ from select import select
class XDCCError(Exception):
pass
+class WrappedXDCCDeferred(WrappedDeferred):
+ pass
+
class XDCCDownload():
def __init__(self, server, port, channel, bot, pack, nick, ident, real, filename, timeout=30, bucket=None, interface=None, proxies={}):
self.server = server
@@ -254,7 +257,7 @@ class XDCCDownload():
debug("XDCC: Downloading %s from %s:%d" % (packname, ip, port))
self._download(ip, port)
- return self.deferred
+ return WrappedXDCCDeferred(self, self.deferred)
if __name__ == "__main__":
import sys