diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-07-17 19:15:54 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-07-17 19:15:54 (GMT) |
commit | a328466bc492c50c443e406b9325542a75182327 (patch) | |
tree | 8388cb92845a20d5c495e5940f5f16a6b95363a3 /Swiften/Client/UnitTest/SessionTest.cpp | |
parent | 436ae921afbc5c2b461ee9b2d8fa9b1c869ed274 (diff) | |
download | swift-a328466bc492c50c443e406b9325542a75182327.zip swift-a328466bc492c50c443e406b9325542a75182327.tar.bz2 |
Implemented clean session/connection shutdown.
Diffstat (limited to 'Swiften/Client/UnitTest/SessionTest.cpp')
-rw-r--r-- | Swiften/Client/UnitTest/SessionTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Client/UnitTest/SessionTest.cpp b/Swiften/Client/UnitTest/SessionTest.cpp index 5d43736..45c0996 100644 --- a/Swiften/Client/UnitTest/SessionTest.cpp +++ b/Swiften/Client/UnitTest/SessionTest.cpp @@ -488,7 +488,7 @@ class SessionTest : public CppUnit::TestFixture { void connect(const String& domain) { if (fail_) { - MainEventLoop::postEvent(boost::bind(boost::ref(onError), Connection::ConnectionError)); + MainEventLoop::postEvent(boost::bind(boost::ref(onDisconnected), Connection::ConnectionError)); } else { domain_ = domain; @@ -497,7 +497,7 @@ class SessionTest : public CppUnit::TestFixture { } void setError() { - MainEventLoop::postEvent(boost::bind(boost::ref(onError), Connection::ConnectionError)); + MainEventLoop::postEvent(boost::bind(boost::ref(onDisconnected), Connection::ConnectionError)); } void write(const ByteArray& data) { |