diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2022-06-09 13:59:06 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2022-06-09 13:59:06 -0500 |
| commit | 1c23ca3a76605ec98ef06eee9199c028a71258c6 (patch) | |
| tree | 7779977533ba7d68ac1fcd3713c628289b376cd5 /src/p2pool/P2PoolManager.cpp | |
| parent | 17f657673fbdcbd4ca260da93619f96667a05a44 (diff) | |
| parent | c87482db9c30b0c3a007da40e0031462ee5f27c0 (diff) | |
| download | monzero-gui-1c23ca3a76605ec98ef06eee9199c028a71258c6.tar.gz monzero-gui-1c23ca3a76605ec98ef06eee9199c028a71258c6.tar.xz monzero-gui-1c23ca3a76605ec98ef06eee9199c028a71258c6.zip | |
Merge pull request #3917
c87482d Only kill p2pool if we started it (ComputeryPony)
Diffstat (limited to 'src/p2pool/P2PoolManager.cpp')
| -rw-r--r-- | src/p2pool/P2PoolManager.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/p2pool/P2PoolManager.cpp b/src/p2pool/P2PoolManager.cpp index ccfe4f94..7f9e2a4f 100644 --- a/src/p2pool/P2PoolManager.cpp +++ b/src/p2pool/P2PoolManager.cpp @@ -206,15 +206,17 @@ bool P2PoolManager::start(const QString &flags, const QString &address, const QS void P2PoolManager::exit() { qDebug("P2PoolManager: exit()"); + if (started) { #ifdef Q_OS_WIN QProcess::execute("taskkill", {"/F", "/IM", "p2pool.exe"}); #else QProcess::execute("pkill", {"p2pool"}); #endif - started = false; - QString dirName = QApplication::applicationDirPath() + "/stats/"; - QDir dir(dirName); - dir.removeRecursively(); + started = false; + QString dirName = QApplication::applicationDirPath() + "/stats/"; + QDir dir(dirName); + dir.removeRecursively(); + } } P2PoolManager::P2PoolManager(QObject *parent) |
