diff --git a/main.go b/main.go index 23b4f77..5562446 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( ) const ( - Version = "go-xmpp4steam v0.3.2" + Version = "go-xmpp4steam v0.3.3" configurationFilePath = "xmpp4steam.cfg" ) diff --git a/xmpp/xmpp.go b/xmpp/xmpp.go index 143f065..56074da 100644 --- a/xmpp/xmpp.go +++ b/xmpp/xmpp.go @@ -42,7 +42,8 @@ func Run() { comp = must(xmpp.NewComponentXMPP(stream, jid, Secret)).(*xmpp.XMPP) mainXMPP() - ChanAction <- ActionMainMethodEnded + log.Printf("%sReach main method's end", LogInfo) + go Run() } func mainXMPP() { @@ -157,6 +158,7 @@ func AddNewUser(jid, steamLogin, steamPwd string) { g.FriendSteamId = make(map[string]struct{}) g.XMPP_Out = comp.Out + g.XMPP_Connected_Client = make(map[string]bool) MapGatewayInfo[jid] = g go g.Run()