Skip to content

Commit

Permalink
ADJUST COOLDOWN
Browse files Browse the repository at this point in the history
  • Loading branch information
pwojcikdev committed Mar 24, 2024
1 parent ce1cb88 commit 2294b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nano/node/transport/tcp_listener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ void nano::transport::tcp_listener::run ()
lock.lock ();

// Sleep for a while to prevent busy loop with additional cooldown if an error occurred
condition.wait_for (lock, cooldown ? 1s : 100ms, [this] () { return stopped.load (); });
condition.wait_for (lock, cooldown ? 1s : 10ms, [this] () { return stopped.load (); });
}
if (!stopped)
{
Expand Down

0 comments on commit 2294b41

Please sign in to comment.