diff options
Diffstat (limited to 'src/buffer/container.nim')
-rw-r--r-- | src/buffer/container.nim | 2 |
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) |