func (c *_Conn) internalConnLost(err error) {
	// It is possible that internalConnLost will be called multiple times simultaneously
	// (including after sending a DisconnectMessage) as such we only do cleanup etc if the
	// routines were actually running and are not being disconnected at users request
	log.ConnLogger.Debug().Err(err).Str("context", "conn.internalConnLost")
	if err := c.ok(); err != nil {
		log.ConnLogger.Debug().Str("context", "conn.internalConnLost").Int64("connid", int64(c.connID)).Msg("not connected")
		return
	}
	c.close()
}
// internalConnLost close connection when connection is lost or an error occurs
internalConnLost close connection when connection is lost or an error occurs
// internalConnLost close connection when connection is lost or an error occurs
func (c *_Conn) internalConnLost(err error) {
	log.ConnLogger.Debug().Err(err).Str("context", "conn.internalConnLost")
	if err := c.ok(); err != nil {
		log.ConnLogger.Debug().Str("context", "conn.internalConnLost").Int64("connid", int64(c.connID)).Msg("not connected")
		return
	}
	c.close()
}
func ( c * _Conn ) internalConnLost ( err error ) { log . ConnLogger . Debug ( ) . Err ( err ) . Str ( " " , " " ) if err := c . ok ( ) ; err != nil { log . ConnLogger . Debug ( ) . Str ( " " , " " ) . Int64 ( " " , int64 ( c . connID ) ) . Msg ( " " ) return } c . close ( ) }
internalConnLost close connection when connection is lost or an error occurs
internalConnLost close connection when connection is lost or an error occurs
// It is possible that internalConnLost will be called multiple times simultaneously // (including after sending a DisconnectMessage) as such we only do cleanup etc if the // routines were actually running and are not being disconnected at users request