This will close all clients and release the channel properly Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/reds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/reds.c b/server/reds.c index c5e84ec..1a812e4 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3590,7 +3590,7 @@ SPICE_GNUC_VISIBLE void spice_server_destroy(SpiceServer *reds) g_array_unref(reds->config->video_codecs); free(reds->config); if (reds->main_channel) { - main_channel_close(reds->main_channel); + red_channel_destroy(RED_CHANNEL(reds->main_channel)); } reds_cleanup(reds); -- 2.9.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel