mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-11 13:43:47 +00:00
Exception isn't thrown until we call serve_forever, so that must be in the try block
This commit is contained in:
parent
b8b88183c3
commit
1ce6893fa8
@ -3048,6 +3048,9 @@ def start_gevent():
|
|||||||
global gevent_server
|
global gevent_server
|
||||||
try:
|
try:
|
||||||
gevent_server = WSGIServer(('', ub.config.config_port), app)
|
gevent_server = WSGIServer(('', ub.config.config_port), app)
|
||||||
|
gevent_server.serve_forever()
|
||||||
except socket.error:
|
except socket.error:
|
||||||
|
app.logger.info('Unable to listen on \'\', trying on IPv4 only...')
|
||||||
gevent_server = WSGIServer(('0.0.0.0', ub.config.config_port), app)
|
gevent_server = WSGIServer(('0.0.0.0', ub.config.config_port), app)
|
||||||
gevent_server.serve_forever()
|
gevent_server.serve_forever()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user