Skip to content

Commit

Permalink
ApiListener: Don't even try replaying logs if client is disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Feb 12, 2024
1 parent bacc375 commit b6964c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/remote/apilistener.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ void ApiListener::SyncClient(const JsonRpcConnection::Ptr& aclient, const Endpoi
Log(LogInformation, "ApiListener")
<< "Finished sending runtime config updates for endpoint '" << endpoint->GetName() << "' in zone '" << eZone->GetName() << "'.";

if (!needSync) {
if (!needSync || aclient->IsShuttingDown()) {
ObjectLock olock2(endpoint);
endpoint->SetSyncing(false);
return;
Expand Down

0 comments on commit b6964c3

Please sign in to comment.