dc fix2
This commit is contained in:
parent
1bc53e1b15
commit
06e156e9aa
14
main.go
14
main.go
|
@ -26,14 +26,14 @@ var (
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||||
var (
|
var (
|
||||||
Conn *xmpp.Conn
|
Conn *xmpp.Conn
|
||||||
err error
|
err error
|
||||||
)
|
)
|
||||||
start:
|
start:
|
||||||
if Conn != nil {
|
if Conn != nil {
|
||||||
log.Println("Conn check:", Conn.Close())
|
log.Println("Conn check:", Conn.Close())
|
||||||
}
|
}
|
||||||
|
|
||||||
Conn, err = xmpp.Dial("xmpp.ru:5222", "hypnotoad", "xmpp.ru", "pass", "AllHailHypnotoad", nil)
|
Conn, err = xmpp.Dial("xmpp.ru:5222", "hypnotoad", "xmpp.ru", "pass", "AllHailHypnotoad", nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue