mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
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:
1 parent
0dc37940b1
commit
30e5391c99
1 file changed
+5
@@ -34,6 +34,11 @@ struct SyncStreamAsyncWrapper final : public AsyncInputStream {
|
||||
{
|
||||
}
|
||||
|
||||
~SyncStreamAsyncWrapper()
|
||||
{
|
||||
m_stream->on_ready_to_read = nullptr;
|
||||
}
|
||||
|
||||
virtual void reset() override
|
||||
{
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user