mirror of
https://github.com/tmate-io/tmate
synced 2020-11-18 19:53:50 -08:00
Send TMATE_READY message when the config files are done loading
This fixes bug where webhooks are not registering correctly, leading to a disconnect and reconnect.
This commit is contained in:
parent
3e5d919b14
commit
d654ff2219
4
server.c
4
server.c
@ -205,10 +205,6 @@ server_start(struct event_base *base, int lockfd, char *lockfile)
|
|||||||
|
|
||||||
status_prompt_load_history();
|
status_prompt_load_history();
|
||||||
|
|
||||||
#ifdef TMATE
|
|
||||||
tmate_write_ready();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
server_add_accept(0);
|
server_add_accept(0);
|
||||||
|
|
||||||
proc_loop(server_proc, server_loop);
|
proc_loop(server_proc, server_loop);
|
||||||
|
@ -138,6 +138,7 @@ void tmate_session_start(void)
|
|||||||
* - While we are parsing the config file, we need to be able to
|
* - While we are parsing the config file, we need to be able to
|
||||||
* serialize it, and so we need a worker encoder.
|
* serialize it, and so we need a worker encoder.
|
||||||
*/
|
*/
|
||||||
|
tmate_write_ready();
|
||||||
lookup_and_connect();
|
lookup_and_connect();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user