summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Network/FakeConnection.cpp')
-rw-r--r--Swiften/Network/FakeConnection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Network/FakeConnection.cpp b/Swiften/Network/FakeConnection.cpp
index be5555c..a84c92e 100644
--- a/Swiften/Network/FakeConnection.cpp
+++ b/Swiften/Network/FakeConnection.cpp
@@ -1,11 +1,11 @@
/*
- * Copyright (c) 2010 Remko Tronçon
+ * Copyright (c) 2010-2014 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
#include <Swiften/Network/FakeConnection.h>
#include <boost/bind.hpp>
namespace Swift {
@@ -37,19 +37,19 @@ void FakeConnection::connect(const HostAddressPort& address) {
else {
if (!error) {
connectedTo = address;
state = Connected;
}
else {
state = DisconnectedWithError;
}
eventLoop->postEvent(
- boost::bind(boost::ref(onConnectFinished), error),
+ boost::bind(boost::ref(onConnectFinished), error ? true : false),
shared_from_this());
}
}
void FakeConnection::disconnect() {
if (!error) {
state = Disconnected;
}
else {