end faster when only pickup endpoints are left

This commit is contained in:
Anthony Minessale committed 2012-09-10 20:47:57 -05:00
1 parent d8fc88ea75
commit c698de5c07
1 file changed
+1 -1
+1 -1
View 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;