From 14f3a7db52b2a7c26518926ddaa93bdacb7c0cd8 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Thu, 30 Sep 2021 21:41:49 +0530 Subject: [PATCH] Prevent incorrect timeout value from being set --- config/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config/config.go b/config/config.go index 5be1336a..e9d6a02e 100644 --- a/config/config.go +++ b/config/config.go @@ -321,6 +321,7 @@ func (c *Config) UpdateConfig(key string, value string, update bool) { intValue, err := strconv.Atoi(value) if err != nil { fmt.Println("Error caught while setting timeout:", err) + return } c.Core.Timeout = intValue case "profile":