mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 19:52:35 +00:00
FS-5102 mod_skypopen crashes FS when skype is not working or skype user tries to log in without network connection present
This commit is contained in:
parent
c98aa768a0
commit
1a3a11fa1a
@ -2029,7 +2029,8 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_skypopen_load)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
running = 1;
|
running = 1;
|
||||||
load_config(FULL_RELOAD);
|
|
||||||
|
if (load_config(FULL_RELOAD) == SWITCH_STATUS_SUCCESS) {
|
||||||
|
|
||||||
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
|
*module_interface = switch_loadable_module_create_module_interface(pool, modname);
|
||||||
skypopen_endpoint_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_ENDPOINT_INTERFACE);
|
skypopen_endpoint_interface = switch_loadable_module_create_interface(*module_interface, SWITCH_ENDPOINT_INTERFACE);
|
||||||
@ -2058,6 +2059,11 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_skypopen_load)
|
|||||||
/* indicate that the module should continue to be loaded */
|
/* indicate that the module should continue to be loaded */
|
||||||
return SWITCH_STATUS_SUCCESS;
|
return SWITCH_STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
running = 0;
|
||||||
|
switch_sleep(1000000); //1 full second
|
||||||
|
return SWITCH_STATUS_FALSE;
|
||||||
|
}
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user