mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-17 04:53:42 +00:00
refactoring
This commit is contained in:
@@ -115,7 +115,7 @@ int http_server_listen(struct http_server_t *server) {
|
|||||||
LOG_DEBUG("Binding HTTP to [%s]:%d ...", server->host, server->port);
|
LOG_DEBUG("Binding HTTP to [%s]:%d ...", server->host, server->port);
|
||||||
evhttp_set_timeout(server->run->http, server->timeout);
|
evhttp_set_timeout(server->run->http, server->timeout);
|
||||||
|
|
||||||
if (evhttp_bind_socket(server->run->http, server->host, server->port) != 0) {
|
if (evhttp_bind_socket(server->run->http, server->host, server->port) < 0) {
|
||||||
LOG_PERROR("Can't listen HTTP on [%s]:%d", server->host, server->port)
|
LOG_PERROR("Can't listen HTTP on [%s]:%d", server->host, server->port)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user