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
@@ -210,13 +210,13 @@ func (c *Client) recv(keepaliveQuit chan<- struct{}) (err error) {
|
||||
// Handle stream errors
|
||||
switch packet := val.(type) {
|
||||
case StreamError:
|
||||
c.router.Route(c, val)
|
||||
c.router.route(c, val)
|
||||
close(keepaliveQuit)
|
||||
c.streamError(packet.Error.Local, packet.Text)
|
||||
return errors.New("stream error: " + packet.Error.Local)
|
||||
}
|
||||
|
||||
c.router.Route(c, val)
|
||||
c.router.route(c, val)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user