Exclude enhance audio feature
[platform/core/connectivity/bluetooth-agent.git] / ag-agent / bluetooth-ag-agent.c
index 95e8173..5fd9364 100755 (executable)
@@ -1884,6 +1884,9 @@ static int __bt_ag_sco_connect(bt_ag_info_t *hs)
        bt_ag_slconn_t *slconn = hs->slc;
        /*guint watch_id;*/
 
+       if (hs->state == HEADSET_STATE_ON_CALL)
+               return BT_HFP_AGENT_ERROR_ALREADY_CONNECTED;
+
        if (hs->state != HEADSET_STATE_CONNECTED)
                return BT_HFP_AGENT_ERROR_NOT_CONNECTED;
 #ifdef TIZEN_MEDIA_ENHANCE