Fixed problem where client could be deleted right before starting an uploadamule-svn-r10646
commit1c652607e887ad597d887b97b3bd0545747fc458
authorupstream svn <svn@amule.org>
Sat, 15 Oct 2011 12:54:23 +0000 (15 12:54 +0000)
committerDévai Tamás <gonosztopi@amule.org>
Sun, 16 Oct 2011 14:38:38 +0000 (16 14:38 +0000)
tree7ec6ab3796b17a14167538389c739961a515754f
parent049934dbca8000a1646b5c71cfa188ce9a68a66d
Fixed problem where client could be deleted right before starting an upload

Client is first removed from waiting queue and then added to uploading list.
If removal from waiting queue removed last reference to client it would have been
deleted then. So first store it in a temporary CClientRef.

Didn't observe this happening (client is probably still linked in client list too), but still.
.svn-revision
src/UploadQueue.cpp
src/UploadQueue.h