Move headless sync stop to InitDoneCallback

This commit is contained in:
FIGBERT 2023-08-17 10:49:01 -07:00
parent 948bf767bc
commit 8fcbdddc62
No known key found for this signature in database
GPG key ID: 67F1598D607A844B

View file

@ -438,9 +438,8 @@ func (c *Container) InitSyncer() {
debug.Print("Running GC")
runtime.GC()
dbg.FreeOSMemory()
}
if c.headless {
c.syncer.FirstDoneCallback = func() {
if c.headless {
c.Stop()
}
}