diff --git a/src/insomnia.cpp b/src/insomnia.cpp index 8cae8ab..57dbf35 100644 --- a/src/insomnia.cpp +++ b/src/insomnia.cpp @@ -224,7 +224,9 @@ void Insomnia::heartbeatReceived(int sock) { stop(); emit timeout(); - start(); + if (!m_singleShot) { + start(); + } } bool Insomnia::isActive() const