(&mut self)
| 455 | |
| 456 | impl Drop for Session { |
| 457 | fn drop(&mut self) { |
| 458 | let previous_count = SESSION_COUNT.fetch_sub(1, SeqCst); |
| 459 | if previous_count == 1 { |
| 460 | // We were the last session, therefor we can safely shut down. |
| 461 | shutdown(); |
| 462 | } |
| 463 | } |
| 464 | } |
nothing calls this directly
no test coverage detected