diff --git a/netwerk/base/src/nsSocketTransport.cpp b/netwerk/base/src/nsSocketTransport.cpp index e40c1963074..07cb9c23440 100644 --- a/netwerk/base/src/nsSocketTransport.cpp +++ b/netwerk/base/src/nsSocketTransport.cpp @@ -456,9 +456,11 @@ nsresult nsSocketTransport::Process(PRInt16 aSelectFlags) LOG(("nsSocketTransport: Transport [host=%s:%d this=%x] is in WaitDNS state.\n", mHostName, mPort, this)); mStatus = doResolveHost(); - // Send status message - OnStatus(NS_NET_STATUS_RESOLVING_HOST); + // only send a status if doResolveHost is going to do some + // resolution + if (mStatus != NS_OK) + OnStatus(NS_NET_STATUS_RESOLVING_HOST); break; case eSocketState_WaitConnect: