Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: tools/android/forwarder2/command.cc

Issue 2736053003: [Android] Fix port leak in the forwarder. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/android/forwarder2/command.cc
diff --git a/tools/android/forwarder2/command.cc b/tools/android/forwarder2/command.cc
index 8e1dc7b3880c9a880be6677ac2e2a689b7012235..e88960b0ade58044212665fbd8da2c6856e00a96 100644
--- a/tools/android/forwarder2/command.cc
+++ b/tools/android/forwarder2/command.cc
@@ -104,7 +104,7 @@ bool ReceivedCommandWithTimeout(command::Type command,
int timeout_secs) {
int port;
command::Type received_command;
- if (!ReadCommand(socket, &port, &received_command))
+ if (!ReadCommandWithTimeout(socket, &port, &received_command, timeout_secs))
return false;
return received_command == command;
}

Powered by Google App Engine
This is Rietveld 408576698