mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-18 23:36:39 +01:00
stop accepting tunnels by graceful shutdown
This commit is contained in:
parent
f22e5c209c
commit
047c8eda22
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue