forked from Mirrors/freeswitch
Merge pull request #165 in FS/freeswitch from ~MBRANCA/freeswitch:bugfix/FS-7197-libpri-spans-fails-to-stop-when-unloading to master
* commit 'e062f5e3c8355a6b5cb0d12ddb99300e95b38193': If the span has been already fully stopped and ftdm is not running, return success from the span stop function.
This commit is contained in:
commit
c9ebd0fcdf
@ -2709,7 +2709,8 @@ static ftdm_status_t ftdm_libpri_stop(ftdm_span_t *span)
|
||||
ftdm_libpri_data_t *isdn_data = span->signal_data;
|
||||
|
||||
if (!ftdm_test_flag(isdn_data, FTMOD_LIBPRI_RUNNING)) {
|
||||
return FTDM_FAIL;
|
||||
ftdm_log(FTDM_LOG_DEBUG, "Span %d already stopped, continuing anyway...\n", ftdm_span_get_id(span));
|
||||
return FTDM_SUCCESS;
|
||||
}
|
||||
|
||||
ftdm_log(FTDM_LOG_INFO, "Stopping span [s%d][%s]\n",
|
||||
|
Loading…
Reference in New Issue
Block a user