about summary refs log tree commit diff stats
path: root/src/buffer/container.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer/container.nim')
-rw-r--r--src/buffer/container.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer/container.nim b/src/buffer/container.nim
index 7dfd26b9..118bb57d 100644
--- a/src/buffer/container.nim
+++ b/src/buffer/container.nim
@@ -695,7 +695,7 @@ proc load(container: Container) =
   container.setLoadInfo("Connecting to " & container.location.host & "...")
   container.iface.connect().then(proc(res: ConnectResult): auto =
     let info = container.loadinfo
-    if res.code != -2:
+    if not res.invalid:
       container.code = res.code
       if res.code == 0:
         container.triggerEvent(SUCCESS)