Skip to content

Commit

Permalink
Log disconnect after idle
Browse files Browse the repository at this point in the history
  • Loading branch information
ungive committed Aug 5, 2024
1 parent d005d92 commit 4078ead
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clients/cpp/src/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,8 @@ void ClientImpl::internal_restart(std::unique_lock<std::mutex>& lock)

void loon::ClientImpl::idle_stop(std::unique_lock<std::mutex>& lock)
{
log(Info) << "disconnecting after idle"
<< var("duration", m_options.disconnect_after_idle);
m_idle_stopped = true;
internal_stop(lock);
}
Expand Down

0 comments on commit 4078ead

Please sign in to comment.