From 118a6b017b74ae20ef261952cfb39bc2f279549a Mon Sep 17 00:00:00 2001 From: Florian Ritterhoff <32478819+fritterhoff@users.noreply.github.com> Date: Mon, 23 Oct 2023 13:47:56 +0200 Subject: [PATCH] fix: catch file update (#21) --- offline.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/offline.go b/offline.go index 48c067e..21c980a 100644 --- a/offline.go +++ b/offline.go @@ -104,6 +104,8 @@ func NewOfflineDatabase(dbFile string, updatedDbFile string) (*OfflineDatabase, for { if _, err := os.Stat(LockFileName); err == nil { lockExists = true + } else { + break } if _, err := os.Stat(dbFile); err == nil { break