1
0
Fork 0

No client config means default config.

This commit is contained in:
Matt Goodall 2012-07-09 02:49:04 +01:00
parent dc447769b2
commit 56a481ff8e
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,10 @@ type ClientConfig struct {
// Create a client XMPP over the stream.
func NewClientXMPP(stream *Stream, jid JID, password string, config *ClientConfig) (*XMPP, error) {
if config == nil {
config = &ClientConfig{}
}
for {
if err := startClient(stream, jid); err != nil {