1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

Don't complain about non-existent ice-servers.json.

This commit is contained in:
Juliusz Chroboczek 2021-01-02 00:34:59 +01:00
parent 450601f0e8
commit 0563356180

View file

@ -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)