mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
We already loop over the windows in server_client_loop, so don't do it
again in server_loop just to check names.
This commit is contained in:
parent
b5aaefc727
commit
b9f0571780
@ -717,6 +717,7 @@ server_client_loop(void)
|
|||||||
}
|
}
|
||||||
wp->flags &= ~PANE_REDRAW;
|
wp->flags &= ~PANE_REDRAW;
|
||||||
}
|
}
|
||||||
|
check_window_name(w);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
server.c
6
server.c
@ -249,13 +249,11 @@ server_start(int lockfd, char *lockfile)
|
|||||||
void
|
void
|
||||||
server_loop(void)
|
server_loop(void)
|
||||||
{
|
{
|
||||||
struct window *w;
|
|
||||||
|
|
||||||
while (!server_should_shutdown()) {
|
while (!server_should_shutdown()) {
|
||||||
|
log_debug("event dispatch enter");
|
||||||
event_loop(EVLOOP_ONCE);
|
event_loop(EVLOOP_ONCE);
|
||||||
|
log_debug("event dispatch exit");
|
||||||
|
|
||||||
RB_FOREACH(w, windows, &windows)
|
|
||||||
check_window_name(w);
|
|
||||||
server_client_loop();
|
server_client_loop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user