diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-04-27 09:56:53 +0200 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2016-04-27 09:56:53 +0200 |
commit | f8a8646b5cc0e9b59a5f953dcd8129c93d162915 (patch) | |
tree | d262c364d733db60e6c88719632ad4d1fab9c78e /src/usb-manager.cpp | |
parent | 7d2fac8f46110a84d8396251cd0f38351b92f6ce (diff) | |
download | ayatana-indicator-display-f8a8646b5cc0e9b59a5f953dcd8129c93d162915.tar.gz ayatana-indicator-display-f8a8646b5cc0e9b59a5f953dcd8129c93d162915.tar.bz2 ayatana-indicator-display-f8a8646b5cc0e9b59a5f953dcd8129c93d162915.zip |
add tracers for the notification warning
Diffstat (limited to 'src/usb-manager.cpp')
-rw-r--r-- | src/usb-manager.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/usb-manager.cpp b/src/usb-manager.cpp index 9f67720..ce546fe 100644 --- a/src/usb-manager.cpp +++ b/src/usb-manager.cpp @@ -50,6 +50,8 @@ public: }); m_greeter->state().changed().connect([this](Greeter::State /*state*/) { +g_message("%s clearing old snap, if any", G_STRLOC); + clear_snap(); g_message("%s greeter state changed; calling maybe_snap()", G_STRLOC); maybe_snap(); }); @@ -67,11 +69,16 @@ g_message("%s greeter state changed; calling maybe_snap()", G_STRLOC); private: - void clear() + void clear_snap() { - // clear out old state m_snap_connections.clear(); m_snap.reset(); + } + + void clear() + { + // clear out old state + clear_snap(); m_req = decltype(m_req)(); m_adbd_client.reset(); } |