diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-12-27 22:08:47 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-12-27 22:08:47 (GMT) |
commit | d64d480cae2db95a802323408745b0d49be9c660 (patch) | |
tree | eebc3609eb05a8dbd0c209948b7be6a06dddfe9d /Swift | |
parent | 08d137d71e23d8237e788750bd32ad5901058031 (diff) | |
download | swift-d64d480cae2db95a802323408745b0d49be9c660.zip swift-d64d480cae2db95a802323408745b0d49be9c660.tar.bz2 |
Removing 'force quit' timer.
Diffstat (limited to 'Swift')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 12 | ||||
-rw-r--r-- | Swift/Controllers/MainController.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index 8a3dd96..bc40f95 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -559,9 +559,6 @@ void MainController::handleNotificationClicked(const JID& jid) { void MainController::handleQuitRequest() { if (client_ && client_->isActive()) { quitRequested_ = true; - quitTimer_ = networkFactories_->getTimerFactory()->createTimer(SecondsToWaitBeforeForceQuitting * 1000); - quitTimer_->onTick.connect(boost::bind(&MainController::handleForceQuit, this)); - quitTimer_->start(); client_->disconnect(); } else { @@ -570,13 +567,4 @@ void MainController::handleQuitRequest() { } } -void MainController::handleForceQuit() { - /* - delete client_; - client_ = NULL;*/ - handleQuitRequest(); -} - -const int MainController::SecondsToWaitBeforeForceQuitting = 20; - } diff --git a/Swift/Controllers/MainController.h b/Swift/Controllers/MainController.h index b74b1ee..900319e 100644 --- a/Swift/Controllers/MainController.h +++ b/Swift/Controllers/MainController.h @@ -144,7 +144,6 @@ namespace Swift { UserSearchController* userSearchControllerAdd_; int timeBeforeNextReconnect_; Timer::ref reconnectTimer_; - Timer::ref quitTimer_; StatusTracker* statusTracker_; bool myStatusLooksOnline_; bool quitRequested_; |