diff options
Diffstat (limited to 'src/Client')
-rw-r--r-- | src/Client/Requests/UserLists/UserListUploadRequest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Client/Requests/UserLists/UserListUploadRequest.cpp b/src/Client/Requests/UserLists/UserListUploadRequest.cpp index 28251d8..8ac9ab6 100644 --- a/src/Client/Requests/UserLists/UserListUploadRequest.cpp +++ b/src/Client/Requests/UserLists/UserListUploadRequest.cpp @@ -46,6 +46,8 @@ void UserListUploadRequest::handlePacket(boost::shared_ptr<const Common::XmlData else { signalFinished(packet); } + + return; } else if(packet->getType() != "Continue") { signalFinished(Core::Exception(Core::Exception::UNEXPECTED_PACKET)); @@ -53,10 +55,11 @@ void UserListUploadRequest::handlePacket(boost::shared_ptr<const Common::XmlData } if(!overwrite && packet->get<bool>("exists")) { + canceled = true; + Common::XmlData ret; ret.setType("Cancel"); sendPacket(ret); - canceled = true; return; } |