Skip to content
Snippets Groups Projects
Commit e53af121 authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

fixed the close stopper not printing

parent 9ebdcb5b
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ import (
"sync"
"sync/atomic"
"time"
jww "github.com/spf13/jwalterweatherman"
)
// Cleanup wraps any stoppable and runs a callback after to stop for cleanup
......@@ -86,5 +87,9 @@ func (c *Cleanup) Close(timeout time.Duration) error {
}
})
if err!=nil{
jww.ERROR.Printf(err.Error())
}
return err
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment