Skip to content

Commit c853599

Browse files
committed
fix(sse): break loop after erasing client
1 parent a0cd03c commit c853599

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/AsyncEventSource.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ void AsyncEventSource::_handleDisconnect(AsyncEventSourceClient *client) {
398398
for (auto i = _clients.begin(); i != _clients.end(); ++i) {
399399
if (i->get() == client) {
400400
_clients.erase(i);
401+
break;
401402
}
402403
}
403404
_adjust_inflight_window();

0 commit comments

Comments
 (0)