This commit is contained in:
cx uname 2014-02-25 16:45:58 +04:00
parent 1bc53e1b15
commit 06e156e9aa
1 changed files with 7 additions and 7 deletions

14
main.go
View File

@ -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 {