Commit d7f04b16 authored by Matteo Quintiliani's avatar Matteo Quintiliani

Added check for ew configuration in function flushing_raw_data_stream() before...

Added check for ew configuration in function flushing_raw_data_stream() before calling nmxptool_ew_send_heartbeat_if_needed()


git-svn-id: file:///home/quintiliani/svncopy/nmxptool/trunk@1250 3cd66e75-5955-46cb-a940-c26e5fc5497d
parent d203a78b
......@@ -7,7 +7,7 @@
* Istituto Nazionale di Geofisica e Vulcanologia - Italy
* quintiliani@ingv.it
*
* $Id: nmxptool.c,v 1.213 2009-05-19 13:30:30 mtheo Exp $
* $Id: nmxptool.c,v 1.214 2009-05-19 13:43:56 mtheo Exp $
*
*/
......@@ -1119,8 +1119,20 @@ void flushing_raw_data_stream() {
to_cur_chan = 0;
while(to_cur_chan < channelList_subset->number) {
/* Check if we need to send heartbeat message */
nmxptool_ew_send_heartbeat_if_needed();
#ifdef HAVE_EARTHWORMOBJS
if(params.ew_configuration_file) {
/* Check if we are being asked to terminate */
if( (ew_check_flag_terminate = nmxptool_ew_check_flag_terminate()) ) {
logit ("t", "nmxptool terminating on request\n");
nmxptool_ew_send_error(NMXPTOOL_EW_ERR_TERMREQ, NULL, params.hostname);
}
/* Check if we need to send heartbeat message */
nmxptool_ew_send_heartbeat_if_needed();
}
#endif
nmxp_log(NMXP_LOG_NORM, NMXP_LOG_D_RAWSTREAM, "Flushing data for channel %s\n",
NMXP_LOG_STR(channelList_subset->channel[to_cur_chan].name));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment