mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
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")
|
debug.Print("Running GC")
|
||||||
runtime.GC()
|
runtime.GC()
|
||||||
dbg.FreeOSMemory()
|
dbg.FreeOSMemory()
|
||||||
}
|
|
||||||
if c.headless {
|
if c.headless {
|
||||||
c.syncer.FirstDoneCallback = func() {
|
|
||||||
c.Stop()
|
c.Stop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue