do not compare snapshot unless non nil (#1830)

This commit is contained in:
Asim Aslam 2020-07-14 07:52:45 +01:00 committed by GitHub
parent 7c5e3b0f30
commit 0a79db498c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -86,7 +86,7 @@ func (c *config) run() {
c.Lock() c.Lock()
if c.snap.Version >= snap.Version { if c.snap != nil && c.snap.Version >= snap.Version {
c.Unlock() c.Unlock()
continue continue
} }