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