@@ -2949,9 +2949,9 @@ nsresult WebSocketChannel::StartWebsocketData() {
2949
2949
&WebSocketChannel::NotifyOnStart),
2950
2950
NS_DISPATCH_NORMAL);
2951
2951
2952
- nsresult rv = self->mConnection
2953
- ? self->mConnection -> StartReading ()
2954
- : self->mSocketIn->AsyncWait(self , 0 , 0 , nullptr );
2952
+ nsresult rv = self->mConnection ? self-> mConnection -> StartReading ()
2953
+ : self->mSocketIn->AsyncWait(
2954
+ self, 0 , 0 , self-> mIOThread );
2955
2955
if (NS_FAILED(rv)) {
2956
2956
self->AbortSession (rv);
2957
2957
}
@@ -4080,7 +4080,7 @@ WebSocketChannel::OnStopRequest(nsIRequest* aRequest, nsresult aStatusCode) {
4080
4080
NS_IMETHODIMP
4081
4081
WebSocketChannel::OnInputStreamReady (nsIAsyncInputStream* aStream) {
4082
4082
LOG ((" WebSocketChannel::OnInputStreamReady() %p\n " , this ));
4083
- MOZ_ASSERT (mIOThread ->IsOnCurrentThread (), " not on right thread" );
4083
+ MOZ_DIAGNOSTIC_ASSERT (mIOThread ->IsOnCurrentThread (), " not on right thread" );
4084
4084
4085
4085
if (!mSocketIn ) { // did we we clean up the socket after scheduling
4086
4086
// InputReady?
@@ -4131,7 +4131,7 @@ WebSocketChannel::OnInputStreamReady(nsIAsyncInputStream* aStream) {
4131
4131
NS_IMETHODIMP
4132
4132
WebSocketChannel::OnOutputStreamReady (nsIAsyncOutputStream* aStream) {
4133
4133
LOG ((" WebSocketChannel::OnOutputStreamReady() %p\n " , this ));
4134
- MOZ_ASSERT (mIOThread ->IsOnCurrentThread (), " not on right thread" );
4134
+ MOZ_DIAGNOSTIC_ASSERT (mIOThread ->IsOnCurrentThread (), " not on right thread" );
4135
4135
nsresult rv;
4136
4136
4137
4137
if (!mCurrentOut ) PrimeNewOutgoingMessage ();
0 commit comments