forked from Telodendria/Telodendria
Free server when we're done with it.
This frees up a lot of memory, and closes the server socket so that the operating system doesn't have to do it, because the operating system may take a while to actually close the socket.
This commit is contained in:
parent
9378a4d369
commit
d8a89c4750
1 changed files with 1 additions and 0 deletions
|
@ -380,6 +380,7 @@ main(int argc, char **argv)
|
|||
/* Block this thread until the server is terminated by a signal
|
||||
* handler */
|
||||
HttpServerJoin(httpServer);
|
||||
HttpServerFree(httpServer);
|
||||
|
||||
finish:
|
||||
Log(lc, LOG_TASK, "Shutting down...");
|
||||
|
|
Loading…
Reference in a new issue