changed mc.buf == nil to mc.netConn == nil