Add tracing in shutdown
authorAndre Heinecke <aheinecke@intevation.de>
Thu, 8 Nov 2018 13:01:06 +0000 (14:01 +0100)
committerAndre Heinecke <aheinecke@intevation.de>
Thu, 8 Nov 2018 13:01:06 +0000 (14:01 +0100)
* src/gpgoladdin.cpp (GpgolAddin::shutdown): Add tracing.

src/gpgoladdin.cpp

index be3bdac..bd9cdb8 100644 (file)
@@ -1189,11 +1189,12 @@ GpgolAddin::addRibbon (LPDISPATCH disp)
 void
 GpgolAddin::shutdown ()
 {
+  TSTART;
   if (m_shutdown)
     {
       log_debug ("%s:%s: Already shutdown",
                  SRCNAME, __func__);
-      return;
+      TRETURN;
     }
 
   m_shutdown = true;
@@ -1233,6 +1234,7 @@ GpgolAddin::shutdown ()
 
   gpgol_release (m_application);
   m_application = nullptr;
+  TRETURN;
 }
 
 void