func (eng *Engine) disconnect(err error) { cond := eng.Transport().Condition() cond.SetError(err) // Set the provided error. cond.SetError(eng.conn.Close()) // Use connection error if cond is not already set. C.pn_connection_engine_disconnected(&eng.engine) }
// FIXME aconway 2016-06-21: rename func (eng *Engine) disconnect() { // FIXME aconway 2016-06-21: disconnected eng.conn.Close() C.pn_connection_engine_disconnected(&eng.engine) }