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