mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-04 14:03:59 +01:00
XMRig: fix stop on windows
This commit is contained in:
+6
-6
@@ -32,13 +32,13 @@ void XmRig::prepare() {
|
||||
}
|
||||
|
||||
void XmRig::stop() {
|
||||
if(m_process.state() == QProcess::Running)
|
||||
m_process.kill();
|
||||
}
|
||||
|
||||
void XmRig::terminate() {
|
||||
if(m_process.state() == QProcess::Running)
|
||||
if(m_process.state() == QProcess::Running) {
|
||||
#if defined(Q_OS_WIN)
|
||||
m_process.kill(); // https://doc.qt.io/qt-5/qprocess.html#terminate
|
||||
#else
|
||||
m_process.terminate();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
void XmRig::start(const QString &path,
|
||||
|
||||
@@ -25,7 +25,6 @@ public:
|
||||
|
||||
void start(const QString &path, unsigned int threads, const QString &address, const QString &username, const QString &password, bool tor = false, bool tls = true);
|
||||
void stop();
|
||||
void terminate();
|
||||
bool unpackBins();
|
||||
|
||||
QString rigDir;
|
||||
|
||||
Reference in New Issue
Block a user