Issue #5: Added libevent version check

This commit is contained in:
Devaev Maxim
2019-05-17 16:56:25 +03:00
parent b3c8071edb
commit ddb3db8b20

View File

@@ -121,7 +121,10 @@ void http_server_destroy(struct http_server_t *server) {
close(server->run->unix_fd);
}
event_base_free(server->run->base);
# if LIBEVENT_VERSION_NUMBER >= 0x02010100
libevent_global_shutdown();
# endif
for (struct stream_client_t *client = server->run->stream_clients; client != NULL;) {
struct stream_client_t *next = client->next;