Example #1
0
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)
}
Example #2
0
// 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)
}