diff --git a/netwerk/build/nsNetModule.cpp b/netwerk/build/nsNetModule.cpp index 3e9b866471e3..dab52619cf71 100644 --- a/netwerk/build/nsNetModule.cpp +++ b/netwerk/build/nsNetModule.cpp @@ -635,8 +635,10 @@ static void nsNetShutdown() // Release DNS service reference. nsDNSPrefetch::Shutdown(); +#ifdef NECKO_PROTOCOL_websocket // Release the Websocket Admission Manager mozilla::net::nsWebSocketHandler::Shutdown(); +#endif // NECKO_PROTOCOL_websocket } NS_DEFINE_NAMED_CID(NS_IOSERVICE_CID);