diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-09-29 18:12:59 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-09-29 18:12:59 +0200 |
commit | 1b3a914d5fdf5a578e24754845c6350c59c0b523 (patch) | |
tree | f34f2da9db375a9c135b7b338567c5390f815fec /src/Client/Requests/UserLists | |
parent | 9b3152cb3645913d8f2e419575d9d8b5d0ad0d68 (diff) | |
download | mad-1b3a914d5fdf5a578e24754845c6350c59c0b523.tar mad-1b3a914d5fdf5a578e24754845c6350c59c0b523.zip |
Fixed some UserListManager-related bugs
Diffstat (limited to 'src/Client/Requests/UserLists')
-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; } |