diff --git a/netwerk/protocol/http/HttpBackgroundChannelChild.cpp b/netwerk/protocol/http/HttpBackgroundChannelChild.cpp index 870661a8509f..d0ef476a83be 100644 --- a/netwerk/protocol/http/HttpBackgroundChannelChild.cpp +++ b/netwerk/protocol/http/HttpBackgroundChannelChild.cpp @@ -452,7 +452,7 @@ HttpBackgroundChannelChild::ActorDestroy(ActorDestroyReason aWhy) RefPtr self = this; mQueuedRunnables.AppendElement(NS_NewRunnableFunction( "HttpBackgroundChannelChild::ActorDestroy", [self]() { - MOZ_ASSERT(NS_IsMainThread()); + MOZ_ASSERT(OnSocketThread()); RefPtr channelChild = self->mChannelChild.forget(); if (channelChild) {