summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xserver/thumb-server.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/thumb-server.c b/server/thumb-server.c
index 743d339..f7eeff0 100755
--- a/server/thumb-server.c
+++ b/server/thumb-server.c
@@ -110,6 +110,9 @@ int main(void)
thumb_dbg("Thumbnail server is shutting down...");
g_io_channel_shutdown(channel, FALSE, NULL);
g_io_channel_unref(channel);
+ /*close socket*/
+ close(sockfd);
+
_thumb_daemon_finish_jobs();
g_main_loop_unref(g_thumb_server_mainloop);