mirror of https://gogs.blitter.com/RLabs/xs
-Removed Close on null failed Listener (hkexshd)
-Removed premature net.Conn.Close() in hkexnet.Close() (hkexnet) Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
parent
4345c7bf2d
commit
1909786a4b
|
@ -533,7 +533,6 @@ 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
|
||||
}
|
||||
|
|
|
@ -433,8 +433,6 @@ func main() {
|
|||
conn, err := l.Accept()
|
||||
if err != nil {
|
||||
log.Printf("Accept() got error(%v), hanging up.\n", err)
|
||||
conn.Close()
|
||||
//log.Fatal(err)
|
||||
} else {
|
||||
log.Println("Accepted client")
|
||||
|
||||
|
|
Loading…
Reference in New Issue