mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-16 00:12:43 +00:00
stop accepting tunnels by graceful shutdown
This commit is contained in:
parent
f22e5c209c
commit
047c8eda22
@ -2,6 +2,7 @@
|
|||||||
//#include "ui_mainwindow.h"
|
//#include "ui_mainwindow.h"
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
#include "../../RouterContext.h"
|
||||||
|
|
||||||
MainWindow::MainWindow(QWidget *parent) :
|
MainWindow::MainWindow(QWidget *parent) :
|
||||||
QMainWindow(parent)/*,
|
QMainWindow(parent)/*,
|
||||||
@ -62,7 +63,7 @@ void MainWindow::handleGracefulQuitButton() {
|
|||||||
gracefulQuitButton->setEnabled(false);
|
gracefulQuitButton->setEnabled(false);
|
||||||
gracefulQuitButton->adjustSize();
|
gracefulQuitButton->adjustSize();
|
||||||
verticalLayoutWidget->adjustSize();
|
verticalLayoutWidget->adjustSize();
|
||||||
//here, the code to stop tunnels
|
i2p::context.SetAcceptsTunnels (false); // stop accpting tunnels
|
||||||
QTimer::singleShot(10*60*1000/*millis*/, this, SLOT(handleGracefulQuitTimerEvent()));
|
QTimer::singleShot(10*60*1000/*millis*/, this, SLOT(handleGracefulQuitTimerEvent()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user