Skip to content

Commit

Permalink
Don't restart timer if explicitly set to singleShot
Browse files Browse the repository at this point in the history
  • Loading branch information
tanghus committed Jan 16, 2014
1 parent 41b9170 commit 4e7314a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/insomnia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ void Insomnia::heartbeatReceived(int sock) {
stop();
emit timeout();

start();
if (!m_singleShot) {
start();
}
}

bool Insomnia::isActive() const
Expand Down

0 comments on commit 4e7314a

Please sign in to comment.