Fix wrong warning being output when a friend is offline.

This commit is contained in:
Ghislain MARY 2013-09-05 11:27:40 +02:00
parent 2123fcf383
commit d9684b0c3b

View file

@ -355,9 +355,11 @@ LinphoneOnlineStatus linphone_friend_get_status(const LinphoneFriend *lf){
/* Rely on the basic status information. */
break;
case LinphonePresenceActivityOnline:
case LinphonePresenceActivityOffline:
/* Should not happen! */
ms_warning("LinphonePresenceActivityOnline or LinphonePresenceActivityOffline should not happen here!");
ms_warning("LinphonePresenceActivityOnline should not happen here!");
break;
case LinphonePresenceActivityOffline:
online_status = LinphoneStatusOffline;
break;
}
}