diff --git a/main.go b/main.go index 0939a3e..9dcad8f 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( ) const ( - Version = "go-xmpp4steam v0.2.0" + Version = "go-xmpp4steam v0.2.1" configurationFilePath = "xmpp4steam.cfg" ) diff --git a/steam/steam.go b/steam/steam.go index 7584bed..917f540 100644 --- a/steam/steam.go +++ b/steam/steam.go @@ -85,8 +85,9 @@ func mainSteam() { b, err := json.Marshal(*e) if err != nil { log.Printf("%sFailed to json.Marshal() servers list", LogError) + } else { + ioutil.WriteFile(serverAddrs, b, 0666) } - ioutil.WriteFile(serverAddrs, b, 0666) case *steam.PersonaStateEvent: ChanPresence <- e.FriendId.ToString()