diff options
Diffstat (limited to 'adb/adb.cpp')
-rw-r--r-- | adb/adb.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/adb/adb.cpp b/adb/adb.cpp index 98db19123..b5143685a 100644 --- a/adb/adb.cpp +++ b/adb/adb.cpp @@ -1016,8 +1016,12 @@ bool handle_forward_request(const char* service, if (kill_forward) { r = remove_listener(pieces[0].c_str(), transport); } else { - r = install_listener(pieces[0], pieces[1].c_str(), transport, no_rebind, - &resolved_tcp_port, &error); + 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); } if (r == INSTALL_STATUS_OK) { #if ADB_HOST |