From a6d0ce4b4c517b0ec03b2b94af77b3be5faedf4a Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Mon, 10 Feb 2014 17:02:35 +0100 Subject: [PATCH] Fix infinity loop due to latest GlobalState introduced --- coreapi/private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coreapi/private.h b/coreapi/private.h index e7f66d2b8..a2264af68 100644 --- a/coreapi/private.h +++ b/coreapi/private.h @@ -706,7 +706,7 @@ void linphone_core_update_streams(LinphoneCore *lc, LinphoneCall *call, SalMedia bool_t linphone_core_is_payload_type_usable_for_bandwidth(LinphoneCore *lc, PayloadType *pt, int bandwidth_limit); -#define linphone_core_ready(lc) ((lc)->state!=LinphoneGlobalStartup) +#define linphone_core_ready(lc) ((lc)->state==LinphoneGlobalOn || (lc)->state==LinphoneGlobalShutdown) void _linphone_core_configure_resolver(); struct _EcCalibrator{