summaryrefslogtreecommitdiffstats
path: root/Swift
diff options
context:
space:
mode:
Diffstat (limited to 'Swift')
-rw-r--r--Swift/Controllers/MainController.cpp12
-rw-r--r--Swift/Controllers/MainController.h1
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_;