space monkey internal commit export

[katamari commit: cdc11d04d5c47e79a1c5754c935fbc9395e5ecdc]
This commit is contained in:
JT Olds 2014-03-21 02:27:58 -06:00
parent 82663aa776
commit 3124c9db31

7
net.go
View File

@ -17,7 +17,12 @@ func (l *listener) Accept() (c net.Conn, err error) {
if err != nil {
return nil, err
}
return Server(c, l.ctx)
ssl_c, err := Server(c, l.ctx)
if err != nil {
c.Close()
return nil, err
}
return ssl_c, nil
}
// NewListener wraps an existing net.Listener such that all accepted