func (c *Connection) hasPendingCalls() bool {
	if c.inbound.count() > 0 || c.outbound.count() > 0 {
		return true
	}
	if !c.relay.canClose() {
		return true
	}

	return false
}
func (c *Connection) hasPendingCalls() bool {
	if c.inbound.count() > 0 || c.outbound.count() > 0 {
		return true
	}
	if !c.relay.canClose() {
		return true
	}

	return false
}
func ( c * Connection ) hasPendingCalls ( ) bool { if c . inbound . count ( ) > 0 || c . outbound . count ( ) > 0 { return true } if ! c . relay . canClose ( ) { return true } return false }
// hasPendingCalls returns whether there's any pending inbound or outbound calls on this connection.
hasPendingCalls returns whether there s any pending inbound or outbound calls on this connection .