shrpx.cc: Code cleanup
This commit is contained in:
parent
991f14846d
commit
2572fb6fb4
|
@ -275,9 +275,8 @@ int event_loop()
|
||||||
save_pid();
|
save_pid();
|
||||||
}
|
}
|
||||||
|
|
||||||
evconnlistener *evlistener6, *evlistener4;
|
auto evlistener6 = create_evlistener(listener_handler, AF_INET6);
|
||||||
evlistener6 = create_evlistener(listener_handler, AF_INET6);
|
auto evlistener4 = create_evlistener(listener_handler, AF_INET);
|
||||||
evlistener4 = create_evlistener(listener_handler, AF_INET);
|
|
||||||
if(!evlistener6 && !evlistener4) {
|
if(!evlistener6 && !evlistener4) {
|
||||||
LOG(FATAL) << "Failed to listen on address "
|
LOG(FATAL) << "Failed to listen on address "
|
||||||
<< get_config()->host << ", port " << get_config()->port;
|
<< get_config()->host << ", port " << get_config()->port;
|
||||||
|
|
Loading…
Reference in New Issue