diff options
author | Denis Kenzior <denkenz@gmail.com> | 2011-02-07 15:53:31 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-02-07 15:53:31 -0600 |
commit | 50f1b7e94395527eace763e8aa3e6dbf57c7f6c6 (patch) | |
tree | 0306afdc26b1eab6a0c8b0491b09db3b1619d8e5 /src/voicecall.c | |
parent | 09b169c95ffcf418fe24f52d859bc51e8ae87990 (diff) | |
download | ofono-50f1b7e94395527eace763e8aa3e6dbf57c7f6c6.tar.bz2 |
voicecall: Fix check for ECT pre-conditions
We must have 1 Dialing / Alerting / Active call and a single
non-multiparty held call.
Diffstat (limited to 'src/voicecall.c')
-rw-r--r-- | src/voicecall.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |