emulator: fix notify_ring
authorFrédéric Danis <frederic.danis@linux.intel.com>
Thu, 8 Mar 2012 15:02:30 +0000 (16:02 +0100)
committerDenis Kenzior <denkenz@gmail.com>
Wed, 7 Mar 2012 12:16:51 +0000 (06:16 -0600)
notify_ring should not use information from waiting call

src/emulator.c

index 262e782..0f1ceca 100644 (file)
@@ -421,13 +421,6 @@ static gboolean notify_ring(void *user_data)
 
        c = find_call_with_status(em, CALL_STATUS_INCOMING);
 
-       /*
-        * In case of waiting call becoming an incoming call, call status
-        * change may not have been done yet, so try to find waiting call too
-        */
-       if (c == NULL)
-               c = find_call_with_status(em, CALL_STATUS_WAITING);
-
        if (c == NULL)
                return TRUE;