コード例 #1
0
ファイル: endpoint.go プロジェクト: Karm/qpid-proton
// Call in proton goroutine to close an endpoint locally
// handler will complete the close when remote end closes.
func localClose(ep proton.Endpoint, err error) {
	if ep.State().LocalActive() {
		if err != nil {
			ep.Condition().SetError(err)
		}
		ep.Close()
	}
}
コード例 #2
0
ファイル: endpoint.go プロジェクト: ChugR/qpid-proton
// Call in proton goroutine to initiate closing an endpoint locally
// handler will complete the close when remote end closes.
func localClose(ep proton.Endpoint, err error) {
	if ep.State().LocalActive() {
		proton.CloseError(ep, err)
	}
}