+@@ -916,7 +916,7 @@ void nsSSLThread::Run(void)
+ // remember whether we'll write or read
+ nsSSLSocketThreadData::ssl_state busy_socket_ssl_state;
+
+- {
++ if (ssl_thread_singleton) {
+ // In this scope we need mutex protection,
+ // as we find out what needs to be done.
+