Skip to content

Commit

Permalink
Merge pull request #3917
Browse files Browse the repository at this point in the history
c87482d Only kill p2pool if we started it (ComputeryPony)
  • Loading branch information
luigi1111 committed Jun 9, 2022
2 parents 17f6576 + c87482d commit 1c23ca3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/p2pool/P2PoolManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1c23ca3

Please sign in to comment.