Fixes broken counters for broken pipe connections (#880)

Fixes #885
This commit is contained in:
Alex Kremer
2023-10-04 16:59:40 +01:00
committed by GitHub
parent fa42c5c900
commit 0b5f667e4a

View File

@@ -121,6 +121,10 @@ public:
void void
maybeSendNext() maybeSendNext()
{ {
// cleanup if needed. can't do this in destructor so it's here
if (dead())
(*handler_)(ec_, derived().shared_from_this());
if (ec_ || sending_ || messages_.empty()) if (ec_ || sending_ || messages_.empty())
return; return;