Looks like we have to check TCPSocketParent::mIPCOpen before sending messages.
Bug 1541114 Comment 4 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
Looks like we have to check TCPSocketParent::mIPCOpen before sending messages. Or simply null out mSocketBridgeParent at [1]. [1] https://searchfox.org/mozilla-central/rev/14dc5b7d8a6da1854b2f9f33f1da77a97368cd54/dom/network/TCPSocketParent.cpp#331