Skip to content

Commit

Permalink
Add socket watcher closure if no pending operations
Browse files Browse the repository at this point in the history
b/348241402
  • Loading branch information
alexanderbobrovnik committed Sep 16, 2024
1 parent 514e328 commit a2514ab
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 @@ -292,6 +292,8 @@ void TCPSocketStarboard::OnSocketReadyToRead(SbSocket socket) {
}
} else if (read_pending()) {
DidCompleteRead();
} else {
ClearWatcherIfOperationsNotPending();
}
}

Expand Down

0 comments on commit a2514ab

Please sign in to comment.