forked from Mirrors/gomuks
Move headless sync stop to InitDoneCallback
This commit is contained in:
parent
948bf767bc
commit
8fcbdddc62
1 changed files with 2 additions and 3 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue