mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-22 10:44:46 +00:00
Only kill p2pool if we started it
This commit is contained in:
parent
2e2ae5c88f
commit
c87482db9c
1 changed files with 6 additions and 4 deletions
|
@ -206,6 +206,7 @@ bool P2PoolManager::start(const QString &flags, const QString &address, const QS
|
||||||
void P2PoolManager::exit()
|
void P2PoolManager::exit()
|
||||||
{
|
{
|
||||||
qDebug("P2PoolManager: exit()");
|
qDebug("P2PoolManager: exit()");
|
||||||
|
if (started) {
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
QProcess::execute("taskkill", {"/F", "/IM", "p2pool.exe"});
|
QProcess::execute("taskkill", {"/F", "/IM", "p2pool.exe"});
|
||||||
#else
|
#else
|
||||||
|
@ -216,6 +217,7 @@ void P2PoolManager::exit()
|
||||||
QDir dir(dirName);
|
QDir dir(dirName);
|
||||||
dir.removeRecursively();
|
dir.removeRecursively();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
P2PoolManager::P2PoolManager(QObject *parent)
|
P2PoolManager::P2PoolManager(QObject *parent)
|
||||||
: QObject(parent)
|
: QObject(parent)
|
||||||
|
|
Loading…
Reference in a new issue