Skip to content

Commit

Permalink
Add socket watcher closure if no pending operations (youtube#4121)
Browse files Browse the repository at this point in the history
b/348241402
  • Loading branch information
alexanderbobrovnik authored and jellefoks committed Oct 1, 2024
1 parent 9fb9073 commit 7f8feee
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 7f8feee

Please sign in to comment.