1
0
Fork 0

Fix XMPP EOF that brake the compenent

This commit is contained in:
Chteufleur 2016-04-19 16:10:01 +02:00
parent 5109d91e35
commit dc5027d36d
2 changed files with 4 additions and 2 deletions

View File

@ -15,7 +15,7 @@ import (
)
const (
Version = "go-xmpp4steam v0.3.2"
Version = "go-xmpp4steam v0.3.3"
configurationFilePath = "xmpp4steam.cfg"
)

View File

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