No client config means default config.
This commit is contained in:
parent
dc447769b2
commit
56a481ff8e
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue