Skip to content

Commit b6b381d

Browse files
0.13.x: if reset callbacks is called in loop exit
1 parent 1f71b32 commit b6b381d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

api/net/stream_buffer.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ namespace net {
205205
// Pop each time, in case callback leads to another call here.
206206
m_send_buffers.pop_front();
207207
m_on_read(buf);
208+
if (m_on_read == nullptr) { break; } //if calling m_on_read reset the callbacks exit
208209
}
209210
}
210211
}

0 commit comments

Comments
 (0)