Stop stops the TLS module and cleans up any allocations.
()
| 464 | |
| 465 | // Stop stops the TLS module and cleans up any allocations. |
| 466 | func (t *TLS) Stop() error { |
| 467 | // stop the storage cleaner goroutine and ticker |
| 468 | if t.storageCleanStop != nil { |
| 469 | close(t.storageCleanStop) |
| 470 | } |
| 471 | if t.storageCleanTicker != nil { |
| 472 | t.storageCleanTicker.Stop() |
| 473 | } |
| 474 | return nil |
| 475 | } |
| 476 | |
| 477 | // Cleanup frees up resources allocated during Provision. |
| 478 | func (t *TLS) Cleanup() error { |