protocol: fix uv handle closing

This commit is contained in:
Shuanglei Tao
2021-02-06 09:28:04 +08:00
parent 75105f6d48
commit 215849b5d0
3 changed files with 23 additions and 19 deletions

View File

@@ -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);