Don't listen ConnectionServer if not started
This commit is contained in:
parent
996f326c74
commit
498fd4bf01
1 changed files with 2 additions and 0 deletions
|
@ -98,6 +98,8 @@ class ConnectionServer(object):
|
||||||
self.log.info("StreamServer create error: %s" % Debug.formatException(err))
|
self.log.info("StreamServer create error: %s" % Debug.formatException(err))
|
||||||
|
|
||||||
def listen(self):
|
def listen(self):
|
||||||
|
if not self.running:
|
||||||
|
return False
|
||||||
if self.stream_server_proxy:
|
if self.stream_server_proxy:
|
||||||
gevent.spawn(self.listenProxy)
|
gevent.spawn(self.listenProxy)
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue