From e9f488f4a37ffff774abbea00706b7e1f09552df Mon Sep 17 00:00:00 2001 From: Jehan Monnier Date: Sun, 2 May 2010 19:10:22 +0200 Subject: [PATCH] set registered flag before notifying about new gstate --- coreapi/callbacks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/callbacks.c b/coreapi/callbacks.c index cdb180428..a4c2d510a 100644 --- a/coreapi/callbacks.c +++ b/coreapi/callbacks.c @@ -369,8 +369,8 @@ static void register_success(SalOp *op, bool_t registered){ LinphoneCore *lc=(LinphoneCore *)sal_get_user_pointer(sal_op_get_sal(op)); LinphoneProxyConfig *cfg=(LinphoneProxyConfig*)sal_op_get_user_pointer(op); char *msg; - gstate_new_state(lc, GSTATE_REG_OK, NULL); cfg->registered=registered; + gstate_new_state(lc, GSTATE_REG_OK, NULL); if (cfg->registered) msg=ms_strdup_printf(_("Registration on %s successful."),sal_op_get_proxy(op)); else msg=ms_strdup_printf(_("Unregistration on %s done."),sal_op_get_proxy(op)); if (lc->vtable.display_status)