Revision d97e0296 janus.c

View differences:

janus.c
3800 3800
			g_strfreev(disabled_eventhandlers);
3801 3801
		disabled_eventhandlers = NULL;
3802 3802
		/* Initialize the event broadcaster */
3803
		janus_events_init(enable_events, eventhandlers);
3803
		if(janus_events_init(enable_events, eventhandlers) < 0) {
3804
			JANUS_LOG(LOG_FATAL, "Error initializing the Event handlers mechanism...\n");
3805
			exit(1);
3806
		}
3804 3807
	}
3805 3808

  
3806 3809
	/* Load plugins */
......
4125 4128
	}
4126 4129

  
4127 4130
	JANUS_LOG(LOG_INFO, "Closing event handlers:\n");
4131
	janus_events_deinit();
4128 4132
	if(eventhandlers != NULL) {
4129 4133
		g_hash_table_foreach(eventhandlers, janus_eventhandler_close, NULL);
4130 4134
		g_hash_table_destroy(eventhandlers);

Also available in: Unified diff