diff options
-rwxr-xr-x | zaptel.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2608,7 +2608,7 @@ void zt_alarm_notify(struct zt_span *span) zt_qevent_lock(&span->chans[x], j); /* Switch to other master if current master in alarm */ for (x=1; x<maxspans; x++) { - if (spans[x] && !spans[x]->alarms) { + if (spans[x] && !spans[x]->alarms && (spans[x]->flags & ZT_FLAG_RUNNING)) { if(master != spans[x]) printk("Zaptel: Master changed to %s\n", spans[x]->name); master = spans[x]; |