rename packetHandlerMap.Close() to Destroy()

This commit is contained in:
Marten Seemann
2020-01-22 17:59:22 +07:00
parent 62d3a4166a
commit db396d8a78
6 changed files with 24 additions and 23 deletions

View File

@@ -287,7 +287,7 @@ func (c *client) establishSecureConnection(ctx context.Context) error {
go func() {
err := c.session.run() // returns as soon as the session is closed
if err != errCloseForRecreating && c.createdPacketConn {
c.packetHandlers.Close()
c.packetHandlers.Destroy()
}
errorChan <- err
}()