diff --git a/hkexnet/hkexnet.go b/hkexnet/hkexnet.go index 6fbe2dc..8105a35 100644 --- a/hkexnet/hkexnet.go +++ b/hkexnet/hkexnet.go @@ -533,6 +533,7 @@ func (hc *Conn) Close() (err error) { binary.BigEndian.PutUint32(s, uint32(*hc.closeStat)) log.Printf("** Writing closeStat %d at Close()\n", *hc.closeStat) hc.WritePacket(s, CSOExitStatus) + err = (*hc.c).Close() logger.LogDebug(fmt.Sprintln("[Conn Closing]")) return }