From a66fbfd2b39bcd98967c439060951e63e0532c0a Mon Sep 17 00:00:00 2001 From: spoob Date: Thu, 18 Jun 2009 15:16:47 +0200 Subject: fixed some bugs --- module/download_thread.py | 2 +- module/file_list.py | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'module') diff --git a/module/download_thread.py b/module/download_thread.py index f8cad7846..f7aa2ecb1 100644 --- a/module/download_thread.py +++ b/module/download_thread.py @@ -91,7 +91,7 @@ class Download_Thread(threading.Thread): return False sleep(1) if status.filename == "": - pyfile.get_filename() + status.filename = pyfile.get_filename() status.want_reconnect = False diff --git a/module/file_list.py b/module/file_list.py index ea2dfd817..00a3e0603 100644 --- a/module/file_list.py +++ b/module/file_list.py @@ -50,12 +50,10 @@ class File_List(object): def remove(self, pyfile): - pass + if pyfile in self.files: + self.files.remove(pyfile) - #if pyfile in self.files: - # self.files.remove(pyfile) - - #del self.data[pyfile.id] + del self.data[pyfile.id] def get_id(self): """return a free id""" -- cgit v1.2.3