diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-10-21 13:32:21 +0200 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2016-10-21 13:32:21 +0200 |
commit | 7002fc4e6a6496fb5c0d3294540c957787689847 (patch) | |
tree | 6b858548d5558e4d960979134103b040589ea836 /src/adbd-client.cpp | |
parent | 144228c916b574e5f4cbc90b9b90c16f0ed9ac73 (diff) | |
download | ayatana-indicator-display-7002fc4e6a6496fb5c0d3294540c957787689847.tar.gz ayatana-indicator-display-7002fc4e6a6496fb5c0d3294540c957787689847.tar.bz2 ayatana-indicator-display-7002fc4e6a6496fb5c0d3294540c957787689847.zip |
add block braces as suggested by dobey
Diffstat (limited to 'src/adbd-client.cpp')
-rw-r--r-- | src/adbd-client.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/adbd-client.cpp b/src/adbd-client.cpp index 8b675d5..47914cb 100644 --- a/src/adbd-client.cpp +++ b/src/adbd-client.cpp @@ -49,8 +49,9 @@ public: g_cancellable_cancel(m_cancellable); m_pkresponse_cv.notify_one(); m_sleep_cv.notify_one(); - if (m_worker_thread.joinable()) + if (m_worker_thread.joinable()) { m_worker_thread.join(); + } g_clear_object(&m_cancellable); } @@ -154,8 +155,9 @@ private: int(response), int(g_cancellable_is_cancelled(m_cancellable))); } - if (!g_cancellable_is_cancelled(m_cancellable)) + if (!g_cancellable_is_cancelled(m_cancellable)) { send_pk_response(socket, response); + } } else if (!reqstr.empty()) { g_warning("Invalid ADB request: [%s]", reqstr.c_str()); } |