mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
Merge pull request #3917
c87482d
Only kill p2pool if we started it (ComputeryPony)
This commit is contained in:
commit
1c23ca3a76
1 changed files with 6 additions and 4 deletions
|
@ -206,15 +206,17 @@ 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
|
||||||
QProcess::execute("pkill", {"p2pool"});
|
QProcess::execute("pkill", {"p2pool"});
|
||||||
#endif
|
#endif
|
||||||
started = false;
|
started = false;
|
||||||
QString dirName = QApplication::applicationDirPath() + "/stats/";
|
QString dirName = QApplication::applicationDirPath() + "/stats/";
|
||||||
QDir dir(dirName);
|
QDir dir(dirName);
|
||||||
dir.removeRecursively();
|
dir.removeRecursively();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
P2PoolManager::P2PoolManager(QObject *parent)
|
P2PoolManager::P2PoolManager(QObject *parent)
|
||||||
|
|
Loading…
Reference in a new issue