Commit 44b65422 authored by DanmeiChen's avatar DanmeiChen
Browse files

improve linphone_core_start

parent 064d1195
......@@ -2900,13 +2900,13 @@ static void linphone_core_init(LinphoneCore * lc, LinphoneCoreCbs *cbs, LpConfig
LinphoneStatus linphone_core_start (LinphoneCore *lc) {
try {
if (lc->state == LinphoneGlobalShutdown) {
//Force change of status to LinphoneGlobalOff, otherwise restarting it will fail
bctbx_warning("Core was shutDown, forcing to off");
try {
switch (lc->state) {
case LinphoneGlobalShutdown:
bctbx_error("Can't start a Core that is shutdown, wait for Off state");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment