Skip to content

Commit

Permalink
Add socket watcher closure if no pending operations (#4121)
Browse files Browse the repository at this point in the history
b/348241402
  • Loading branch information
alexanderbobrovnik authored Sep 25, 2024
1 parent 46db6b0 commit f6b0372
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/socket/tcp_socket_starboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ void TCPSocketStarboard::OnSocketReadyToRead(SbSocket socket) {
}
} else if (read_pending()) {
DidCompleteRead();
} else {
ClearWatcherIfOperationsNotPending();
}
}

Expand Down

0 comments on commit f6b0372

Please sign in to comment.