Merge pull request #3917

c87482d Only kill p2pool if we started it (ComputeryPony)
This commit is contained in:
luigi1111 2022-06-09 13:59:06 -05:00
commit 1c23ca3a76
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -206,6 +206,7 @@ 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
@ -215,6 +216,7 @@ void P2PoolManager::exit()
QString dirName = QApplication::applicationDirPath() + "/stats/";
QDir dir(dirName);
dir.removeRecursively();
}
}
P2PoolManager::P2PoolManager(QObject *parent)