forked from jshiffer/go-xmpp
Use transport factory function
This commit is contained in:
committed by
Mickaël Rémond
parent
8db608ccc1
commit
06a76160c8
+1
-1
@@ -67,7 +67,7 @@ func (c *Component) Connect() error {
|
||||
}
|
||||
func (c *Component) Resume(sm SMState) error {
|
||||
var err error
|
||||
c.transport = &XMPPTransport{Config: c.ComponentOptions.TransportConfiguration}
|
||||
c.transport = NewTransport(c.ComponentOptions.TransportConfiguration)
|
||||
if err = c.transport.Connect(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user