From 235b8f359c083b1136bc7461de1a9afe165fd65d Mon Sep 17 00:00:00 2001 From: shortcutme Date: Mon, 15 Apr 2019 15:47:17 +0200 Subject: [PATCH] Don't create new connections in offline mode --- src/Connection/ConnectionServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Connection/ConnectionServer.py b/src/Connection/ConnectionServer.py index 8c76c192..f81dc5f8 100644 --- a/src/Connection/ConnectionServer.py +++ b/src/Connection/ConnectionServer.py @@ -189,7 +189,7 @@ class ConnectionServer(object): return connection # 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: raise Exception("This peer is not connectable")