From 7fa32641f04e93681d21f04022af673aa2c8c31a Mon Sep 17 00:00:00 2001 From: mkaay Date: Tue, 21 Dec 2010 18:20:30 +0100 Subject: new download backend: wrapped deferred, Request compatibility draft, other fixes added caution's fixes (VeehdCom, PornhubCom) --- module/network/XDCCBase.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'module/network/XDCCBase.py') 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 -- cgit v1.2.3