Revert "Delay initial accept() until server initialized"
This reverts commit 4ad4a11aa8106d98f2b78e738d88996a1fbbcd4b.
Reason for revert: BUG: 144355953
Change-Id: Icb3d87e1f697ff60fc1262798cb19be8705e3740
diff --git a/adb/adb.cpp b/adb/adb.cpp
index 430123a..9b663be 100644
--- a/adb/adb.cpp
+++ b/adb/adb.cpp
@@ -979,12 +979,8 @@
if (kill_forward) {
r = remove_listener(pieces[0].c_str(), transport);
} else {
- int flags = 0;
- if (no_rebind) {
- flags |= INSTALL_LISTENER_NO_REBIND;
- }
- r = install_listener(pieces[0], pieces[1].c_str(), transport, flags, &resolved_tcp_port,
- &error);
+ r = install_listener(pieces[0], pieces[1].c_str(), transport, no_rebind,
+ &resolved_tcp_port, &error);
}
if (r == INSTALL_STATUS_OK) {
#if ADB_HOST