Close shuts down the client
()
| 391 | |
| 392 | // Close shuts down the client |
| 393 | func (c *Client) Close() { |
| 394 | if c.cancel != nil { |
| 395 | c.cancel() |
| 396 | } |
| 397 | |
| 398 | if c.bus != nil { |
| 399 | c.bus.Close() |
| 400 | } |
| 401 | |
| 402 | if !c.closed && c.core != nil { |
| 403 | c.closed = true |
| 404 | c.core.ClientClosed() |
| 405 | } |
| 406 | } |
| 407 | |
| 408 | // Application is the application operation accessor |
| 409 | func (c *Client) Application() ari.Application { |
no test coverage detected