Don't listen ConnectionServer if not started

This commit is contained in:
shortcutme 2019-04-15 15:46:37 +02:00
parent 996f326c74
commit 498fd4bf01
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -98,6 +98,8 @@ class ConnectionServer(object):
self.log.info("StreamServer create error: %s" % Debug.formatException(err))
def listen(self):
if not self.running:
return False
if self.stream_server_proxy:
gevent.spawn(self.listenProxy)
try: