Do not export Router.route as it is not supposed to be called directly

This commit is contained in:
Mickael Remond
2019-06-24 11:13:25 +02:00
committed by Mickaël Rémond
parent 3521c488ea
commit d6d371df4d
4 changed files with 54 additions and 54 deletions
+2 -2
View File
@@ -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)
}
}