} else {
Syslog_.Printf("Error starting XMPP Bot: %s", xmpperr.Error())
}
- time.Sleep(10 * time.Second)
+ time.Sleep(20 * time.Second)
}
}
import (
"crypto/tls"
"encoding/json"
+ "errors"
"os"
"path"
"strings"
Syslog_.Println("Error connecting to xmpp server", err)
return nil, nil, err
}
+ if botdata.xmppclient_ == nil {
+ Syslog_.Println("xmpp.NewClient returned nil without error")
+ return nil, nil, errors.New("No answer from xmpp server")
+ }
err = botdata.xmppclient_.StartSession(true, &xmpp.Presence{})
if err != nil {