summaryrefslogtreecommitdiff
path: root/update.go
diff options
context:
space:
mode:
Diffstat (limited to 'update.go')
-rw-r--r--update.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/update.go b/update.go
index bd25ff1..69360ab 100644
--- a/update.go
+++ b/update.go
@@ -9,6 +9,7 @@ import (
)
func (ls *LinuxStatus) Update() {
+ if ls == nil { return }
if !ls.Ready() {
log.Log(WARN, "can't update yet. ready is false")
log.Error(errors.New("Update() is not ready yet"))