diff --git a/src/AsyncEventSource.cpp b/src/AsyncEventSource.cpp index 61a2650c..96079337 100644 --- a/src/AsyncEventSource.cpp +++ b/src/AsyncEventSource.cpp @@ -398,6 +398,7 @@ void AsyncEventSource::_handleDisconnect(AsyncEventSourceClient *client) { for (auto i = _clients.begin(); i != _clients.end(); ++i) { if (i->get() == client) { _clients.erase(i); + break; } } _adjust_inflight_window();