From: Michal Voců Date: Mon, 13 Sep 2010 13:38:31 +0000 (+0000) Subject: do not close not yet open connection X-Git-Tag: glite-px-glite-PX_R_3_2_0_0~9 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=3f9e512ced79849ff4c357bc240c5e6996d9e733;p=jra1mw.git do not close not yet open connection --- diff --git a/org.glite.lb.logger-msg/src/activemq_cpp_plugin.cpp b/org.glite.lb.logger-msg/src/activemq_cpp_plugin.cpp index fb3d5e8..8bab957 100644 --- a/org.glite.lb.logger-msg/src/activemq_cpp_plugin.cpp +++ b/org.glite.lb.logger-msg/src/activemq_cpp_plugin.cpp @@ -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();