end faster when only pickup endpoints are left

This commit is contained in:
Anthony Minessale 2012-09-10 20:47:51 -05:00 committed by Ken Rice
parent 2b334d571f
commit b4df774563

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;