mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-18 01:48:47 +03:00
Fix incorrect CHECK during client-side early pull
This commit is contained in:
parent
8ef1cecadf
commit
9196d698eb
@ -301,12 +301,13 @@ int NaiveConnection::DoConnectServerComplete(int result) {
|
||||
}
|
||||
|
||||
int NaiveConnection::Run(CompletionOnceCallback callback) {
|
||||
DCHECK(sockets_[kClient]);
|
||||
DCHECK(sockets_[kServer]);
|
||||
DCHECK_EQ(next_state_, STATE_NONE);
|
||||
DCHECK(!connect_callback_);
|
||||
|
||||
if (errors_[kClient] != OK)
|
||||
// The client-side socket may be closed before the server-side
|
||||
// socket is connected.
|
||||
if (errors_[kClient] != OK || sockets_[kClient] == nullptr)
|
||||
return errors_[kClient];
|
||||
if (errors_[kServer] != OK)
|
||||
return errors_[kServer];
|
||||
|
Loading…
Reference in New Issue
Block a user