]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
end faster when only pickup endpoints are left
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 11 Sep 2012 01:47:51 +0000 (20:47 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 11 Sep 2012 01:47:57 +0000 (20:47 -0500)
src/switch_ivr_originate.c

index 5b7ee939358584e585fcc5e1add31501ac3251fa..a2a7b0fe87375fe8c9f1517a06d11aa63e8e3725 100644 (file)
@@ -772,7 +772,7 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
                }
        }
 
-       if (oglobals->hups > 0 && oglobals->hups + pickups == len) {
+       if ((oglobals->hups > 0 && oglobals->hups + pickups == len) || pickups == len) {
                rval = 0;
        } else {
                rval = 1;