diff options
Diffstat (limited to 'QA')
-rw-r--r-- | QA/Swiften/ClientTest/ClientTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/QA/Swiften/ClientTest/ClientTest.cpp b/QA/Swiften/ClientTest/ClientTest.cpp index b628a8d..412eb53 100644 --- a/QA/Swiften/ClientTest/ClientTest.cpp +++ b/QA/Swiften/ClientTest/ClientTest.cpp @@ -7,6 +7,8 @@ #include "Swiften/EventLoop/SimpleEventLoop.h" #include "Swiften/Queries/Requests/GetRosterRequest.h" #include "Swiften/Client/ClientXMLTracer.h" +#include "Swiften/Network/BoostIOServiceThread.h" +#include "Swiften/Network/MainBoostIOServiceThread.h" using namespace Swift; @@ -44,7 +46,7 @@ int main(int, char**) { client->connect(); { - boost::shared_ptr<Timer> timer(new Timer(10000)); + boost::shared_ptr<Timer> timer(new Timer(10000, &MainBoostIOServiceThread::getInstance().getIOService())); timer->onTick.connect(boost::bind(&SimpleEventLoop::stop, &eventLoop)); timer->start(); |