From 50f1b7e94395527eace763e8aa3e6dbf57c7f6c6 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 7 Feb 2011 15:53:31 -0600 Subject: voicecall: Fix check for ECT pre-conditions We must have 1 Dialing / Alerting / Active call and a single non-multiparty held call. --- src/voicecall.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/voicecall.c b/src/voicecall.c index 7632c0db..46066686 100644 --- a/src/voicecall.c +++ b/src/voicecall.c @@ -1354,7 +1354,7 @@ static DBusMessage *manager_transfer(DBusConnection *conn, numheld = voicecalls_num_held(vc); - if ((numactive != 1) && (numheld != 1)) + if (numactive != 1 || numheld != 1) return __ofono_error_failed(msg); if (vc->driver->transfer == NULL) -- cgit v1.2.3