Skip to content

Commit 0b74285

Browse files
committed
The same CTK.Downloader() object could not be used twice. This patch
checks whether the object was already initialized before trying to do it again. git-svn-id: svn://cherokee-project.com/CTK/trunk@5442 5dc97367-97f1-0310-9951-d761b3857238
1 parent 8e93ec7 commit 0b74285

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CTK/Downloader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,8 @@ def __call__ (self, url):
155155
elif request.url.endswith('/start'):
156156
# Current Downloads
157157
d = downloads[url]
158-
d.start()
158+
if d.status == 'init':
159+
d.start()
159160
return 'ok'
160161

161162

0 commit comments

Comments
 (0)