forked from github/server
crash if a watcher faction has quit.
This commit is contained in:
parent
7f370585ad
commit
9f8c55b492
|
@ -2161,8 +2161,10 @@ update_intervals(void)
|
||||||
struct watcher * w = p->watchers;
|
struct watcher * w = p->watchers;
|
||||||
while (w) {
|
while (w) {
|
||||||
faction * f = w->faction;
|
faction * f = w->faction;
|
||||||
if (f->first==NULL) f->first = r;
|
if (f!=NULL) {
|
||||||
f->last = r->next;
|
if (f->first==NULL) f->first = r;
|
||||||
|
f->last = r->next;
|
||||||
|
}
|
||||||
w = w->next;
|
w = w->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue