summaryrefslogtreecommitdiffstats
path: root/src/Client/Requests/UserLists
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-09-29 18:12:59 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-09-29 18:12:59 +0200
commit1b3a914d5fdf5a578e24754845c6350c59c0b523 (patch)
treef34f2da9db375a9c135b7b338567c5390f815fec /src/Client/Requests/UserLists
parent9b3152cb3645913d8f2e419575d9d8b5d0ad0d68 (diff)
downloadmad-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.cpp5
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;
}