LibHTTP: Clear on_ready_to_read callback in ~SyncStreamAsyncWrapper()

Otherwise this callback might be called after the SyncStreamAsyncWrapper
is destroyed at the end of Job::read_response().
This commit is contained in:
Sönke Holz authored and Ali Mohammad Pur committed 2025-08-14 17:41:06 +02:00
1 parent 0dc37940b1
commit 30e5391c99
1 file changed
+5
+5
View File
@@ -34,6 +34,11 @@ struct SyncStreamAsyncWrapper final : public AsyncInputStream {
{
}
~SyncStreamAsyncWrapper()
{
m_stream->on_ready_to_read = nullptr;
}
virtual void reset() override
{
}