Mercurial > hg > freeDiameter
comparison libfdcore/p_cnx.c @ 1190:6a1042d8075b
Replace FDEV_TERMINATE events with calls to fd_core_shutdown to handle the core state properly
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Mon, 10 Jun 2013 16:44:18 +0800 |
parents | 436e4342ecd0 |
children | 8c4dd4b693c6 |
comparison
equal
deleted
inserted
replaced
1189:50bf33dc8fe0 | 1190:6a1042d8075b |
---|---|
311 /* Cleanup the connection */ | 311 /* Cleanup the connection */ |
312 if (cnx) | 312 if (cnx) |
313 fd_cnx_destroy(cnx); | 313 fd_cnx_destroy(cnx); |
314 | 314 |
315 /* Generate a termination event */ | 315 /* Generate a termination event */ |
316 CHECK_FCT_DO(fd_event_send(fd_g_config->cnf_main_ev, FDEV_TERMINATE, 0, NULL), ); | 316 CHECK_FCT_DO(fd_core_shutdown(), ); |
317 } | 317 } |
318 | 318 |
319 return NULL; | 319 return NULL; |
320 } | 320 } |
321 | 321 |