From: <jpg...@us...> - 2008-04-23 15:00:26
|
Revision: 1419 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1419&view=rev Author: jpgrayson Date: 2008-04-23 08:00:22 -0700 (Wed, 23 Apr 2008) Log Message: ----------- Fix bug where testcall would crash when CTRL-C was used to kill it. This avoids calling iaxc_shutdown() twice. Modified Paths: -------------- trunk/simpleclient/testcall/testcall.c Modified: trunk/simpleclient/testcall/testcall.c =================================================================== --- trunk/simpleclient/testcall/testcall.c 2008-04-23 14:58:50 UTC (rev 1418) +++ trunk/simpleclient/testcall/testcall.c 2008-04-23 15:00:22 UTC (rev 1419) @@ -44,12 +44,16 @@ cleanly and has to be rebooted. What a pile of doo doo!! */ void killem(void) { - if (initialized) + if ( initialized ) + { iaxc_shutdown(); - if (reg_id){ + initialized = 0; + } + if ( reg_id ) + { iaxc_unregister(reg_id); + reg_id = 0; } - return; } void signal_handler(int signum) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |