From 0563356180230446322e867e124cb027da6c1795 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Sat, 2 Jan 2021 00:34:59 +0100 Subject: [PATCH] Don't complain about non-existent ice-servers.json. --- ice/ice.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ice/ice.go b/ice/ice.go index a73a700..5e07e9f 100644 --- a/ice/ice.go +++ b/ice/ice.go @@ -79,7 +79,9 @@ func updateICEConfiguration() *configuration { if ICEFilename != "" { file, err := os.Open(ICEFilename) if err != nil { - log.Printf("Open %v: %v", ICEFilename, err) + if !os.IsNotExist(err) { + log.Printf("Open %v: %v", ICEFilename, err) + } } else { defer file.Close() d := json.NewDecoder(file)