forked from jshiffer/go-xmpp
Do not export Router.route as it is not supposed to be called directly
This commit is contained in:
committed by
Mickaël Rémond
parent
3521c488ea
commit
d6d371df4d
@@ -128,11 +128,11 @@ func (c *Component) recv() (err error) {
|
||||
// Handle stream errors
|
||||
switch p := val.(type) {
|
||||
case StreamError:
|
||||
c.router.Route(c, val)
|
||||
c.router.route(c, val)
|
||||
c.streamError(p.Error.Local, p.Text)
|
||||
return errors.New("stream error: " + p.Error.Local)
|
||||
}
|
||||
c.router.Route(c, val)
|
||||
c.router.route(c, val)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user