forked from chteufleur/go-xmpp4steam
Fix XMPP EOF that brake the compenent
This commit is contained in:
parent
5109d91e35
commit
dc5027d36d
2
main.go
2
main.go
|
|
@ -15,7 +15,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Version = "go-xmpp4steam v0.3.2"
|
Version = "go-xmpp4steam v0.3.3"
|
||||||
configurationFilePath = "xmpp4steam.cfg"
|
configurationFilePath = "xmpp4steam.cfg"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,8 @@ func Run() {
|
||||||
comp = must(xmpp.NewComponentXMPP(stream, jid, Secret)).(*xmpp.XMPP)
|
comp = must(xmpp.NewComponentXMPP(stream, jid, Secret)).(*xmpp.XMPP)
|
||||||
|
|
||||||
mainXMPP()
|
mainXMPP()
|
||||||
ChanAction <- ActionMainMethodEnded
|
log.Printf("%sReach main method's end", LogInfo)
|
||||||
|
go Run()
|
||||||
}
|
}
|
||||||
|
|
||||||
func mainXMPP() {
|
func mainXMPP() {
|
||||||
|
|
@ -157,6 +158,7 @@ func AddNewUser(jid, steamLogin, steamPwd string) {
|
||||||
g.FriendSteamId = make(map[string]struct{})
|
g.FriendSteamId = make(map[string]struct{})
|
||||||
|
|
||||||
g.XMPP_Out = comp.Out
|
g.XMPP_Out = comp.Out
|
||||||
|
g.XMPP_Connected_Client = make(map[string]bool)
|
||||||
|
|
||||||
MapGatewayInfo[jid] = g
|
MapGatewayInfo[jid] = g
|
||||||
go g.Run()
|
go g.Run()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue