Skip to content

Commit

Permalink
Send TMATE_READY message when the config files are done loading
Browse files Browse the repository at this point in the history
This fixes bug where webhooks are not registering correctly, leading to
a disconnect and reconnect.
  • Loading branch information
nviennot committed Sep 19, 2019
1 parent 3e5d919 commit d654ff2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions server.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ server_start(struct event_base *base, int lockfd, char *lockfile)

status_prompt_load_history();

#ifdef TMATE
tmate_write_ready();
#endif

server_add_accept(0);

proc_loop(server_proc, server_loop);
Expand Down
1 change: 1 addition & 0 deletions tmate-session.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ void tmate_session_start(void)
* - While we are parsing the config file, we need to be able to
* serialize it, and so we need a worker encoder.
*/
tmate_write_ready();
lookup_and_connect();
}

Expand Down

0 comments on commit d654ff2

Please sign in to comment.