Fix killing Syncthing from launcher settings

This commit is contained in:
Martchus 2019-07-11 17:18:07 +02:00
parent 7f307822df
commit 59d71aa6a5
1 changed files with 2 additions and 2 deletions

View File

@ -87,11 +87,11 @@ void SyncthingLauncher::kill()
{
if (m_process.isRunning()) {
m_manuallyStopped = true;
m_process.stopSyncthing();
m_process.killSyncthing();
} else if (m_future.isRunning()) {
m_manuallyStopped = true;
#ifdef SYNCTHINGWIDGETS_USE_LIBSYNCTHING
// FIXME: any change to try harder?
// FIXME: any chance to try harder?
LibSyncthing::stopSyncthing();
#endif
}