diff options
Diffstat (limited to 'Swift/Controllers/MainController.cpp')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 12 |
1 files changed, 0 insertions, 12 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; - } |