Skip to content

Commit

Permalink
fix: catch file update
Browse files Browse the repository at this point in the history
  • Loading branch information
fritterhoff committed Oct 23, 2023
1 parent a64bd23 commit d3f3c89
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions offline.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d3f3c89

Please sign in to comment.