mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-26 12:44:20 +01:00
protocol: fix uv handle closing
This commit is contained in:
@@ -200,6 +200,7 @@ static void server_free(struct server *ts) {
|
||||
}
|
||||
}
|
||||
uv_signal_stop(&ts->watcher);
|
||||
uv_close((uv_handle_t *)&server->watcher, NULL);
|
||||
uv_loop_close(ts->loop);
|
||||
free(ts->loop);
|
||||
free(ts);
|
||||
|
||||
Reference in New Issue
Block a user