diff --git a/client/system/Info_darwin.go b/client/system/Info_darwin.go index 3190dd702..65f6a46f5 100644 --- a/client/system/Info_darwin.go +++ b/client/system/Info_darwin.go @@ -12,7 +12,7 @@ import ( func GetInfo() *Info { out := _getInfo() - for strings.Index(out, "broken pipe") != -1 { + for strings.Contains(info, "broken pipe") { out = _getInfo() time.Sleep(500 * time.Millisecond) } diff --git a/client/system/info_freebsd.go b/client/system/info_freebsd.go index 9267c498d..390bb1dfe 100644 --- a/client/system/info_freebsd.go +++ b/client/system/info_freebsd.go @@ -12,7 +12,7 @@ import ( func GetInfo() *Info { out := _getInfo() - for strings.Index(out, "broken pipe") != -1 { + for strings.Contains(info, "broken pipe") { out = _getInfo() time.Sleep(500 * time.Millisecond) }