Browse Source
caddytls: nil check on storageClean fields on Stop
master
Matthew Holt
5 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
6 additions and
2 deletions
-
modules/caddytls/tls.go
|
|
@ -159,8 +159,12 @@ func (t *TLS) Start() error { |
|
|
|
// Stop stops the TLS module and cleans up any allocations.
|
|
|
|
func (t *TLS) Stop() error { |
|
|
|
// stop the storage cleaner goroutine and ticker
|
|
|
|
close(t.storageCleanStop) |
|
|
|
t.storageCleanTicker.Stop() |
|
|
|
if t.storageCleanStop != nil { |
|
|
|
close(t.storageCleanStop) |
|
|
|
} |
|
|
|
if t.storageCleanTicker != nil { |
|
|
|
t.storageCleanTicker.Stop() |
|
|
|
} |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|