clientClosed is called any time a derived ARI client is closed; if the reference counter is ever dropped to zero, the core is also shut down
()
| 101 | // clientClosed is called any time a derived ARI client is closed; if the |
| 102 | // reference counter is ever dropped to zero, the core is also shut down |
| 103 | func (c *core) ClientClosed() { |
| 104 | c.refCounter-- |
| 105 | |
| 106 | if c.refCounter < 1 { |
| 107 | c.close() |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | // close shuts down the core |
| 112 | func (c *core) close() { |