do not close not yet open connection
authorMichal Voců <michal@ruk.cuni.cz>
Mon, 13 Sep 2010 13:38:31 +0000 (13:38 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Mon, 13 Sep 2010 13:38:31 +0000 (13:38 +0000)
org.glite.lb.logger-msg/src/activemq_cpp_plugin.cpp

index fb3d5e8..8bab957 100644 (file)
@@ -422,7 +422,10 @@ event_queue_close(struct event_queue *eq)
 {
        OutputPlugin *output = (OutputPlugin*)eq->plugin_data;
 
-       assert(output != NULL);
+       if(output == NULL) {
+               // nothing to close
+               return 0;
+       }
 
        try { 
                output->close();