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

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

Issue 15008004: Add device port unmapping support to forwarder2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address David's comments Created 7 years, 7 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
« no previous file with comments | « tools/android/forwarder2/device_listener.cc ('k') | tools/android/forwarder2/host_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android/forwarder2/forwarder.cc
diff --git a/tools/android/forwarder2/forwarder.cc b/tools/android/forwarder2/forwarder.cc
index f1aef15bc3457b4bd85fb5511d55b98122b75da7..d82bb0c3d6fa885f29eb11201f9b8b91d3cf6fe7 100644
--- a/tools/android/forwarder2/forwarder.cc
+++ b/tools/android/forwarder2/forwarder.cc
@@ -94,16 +94,9 @@ Forwarder::Forwarder(scoped_ptr<Socket> socket1, scoped_ptr<Socket> socket2)
socket2_(socket2.Pass()) {
DCHECK(socket1_.get());
DCHECK(socket2_.get());
- // The forwarder thread doesn't need to listen to notifications. It can be
- // keept alive until either the conenction is broken or the program exit.
- socket1_->reset_exit_notifier_fd();
- socket2_->reset_exit_notifier_fd();
}
-Forwarder::~Forwarder() {
- socket1_->Close();
- socket2_->Close();
-}
+Forwarder::~Forwarder() {}
void Forwarder::Run() {
const int nfds = Socket::GetHighestFileDescriptor(*socket1_, *socket2_) + 1;
« no previous file with comments | « tools/android/forwarder2/device_listener.cc ('k') | tools/android/forwarder2/host_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698