summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bluetooth/1.0/default/async_fd_watcher.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/bluetooth/1.0/default/async_fd_watcher.cc b/bluetooth/1.0/default/async_fd_watcher.cc
index a88aa275c..287d007a7 100644
--- a/bluetooth/1.0/default/async_fd_watcher.cc
+++ b/bluetooth/1.0/default/async_fd_watcher.cc
@@ -41,12 +41,7 @@ int AsyncFdWatcher::WatchFdForNonBlockingReads(
}
// Start the thread if not started yet
- int started = tryStartThread();
- if (started != 0) {
- return started;
- }
-
- return 0;
+ return tryStartThread();
}
int AsyncFdWatcher::ConfigureTimeout(