Don't create new connections in offline mode
This commit is contained in:
parent
2326cf3de8
commit
235b8f359c
1 changed files with 1 additions and 1 deletions
|
@ -189,7 +189,7 @@ class ConnectionServer(object):
|
||||||
return connection
|
return connection
|
||||||
|
|
||||||
# No connection found
|
# No connection found
|
||||||
if create: # Allow to create new connection if not found
|
if create and not config.offline: # Allow to create new connection if not found
|
||||||
if port == 0:
|
if port == 0:
|
||||||
raise Exception("This peer is not connectable")
|
raise Exception("This peer is not connectable")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue