mirror of
https://github.com/tmux/tmux.git
synced 2026-03-09 17:30:16 +00:00
Fix server crash when control client session is destroyed, from Renaud
Allard in GitHub issue 4916.
This commit is contained in:
@@ -1046,6 +1046,9 @@ control_check_subs_timer(__unused int fd, __unused short events, void *data)
|
|||||||
log_debug("%s: timer fired", __func__);
|
log_debug("%s: timer fired", __func__);
|
||||||
evtimer_add(&cs->subs_timer, &tv);
|
evtimer_add(&cs->subs_timer, &tv);
|
||||||
|
|
||||||
|
if (s == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
/* Find which subscription types are present. */
|
/* Find which subscription types are present. */
|
||||||
RB_FOREACH(csub, control_subs, &cs->subs) {
|
RB_FOREACH(csub, control_subs, &cs->subs) {
|
||||||
switch (csub->type) {
|
switch (csub->type) {
|
||||||
|
|||||||
Reference in New Issue
Block a user