moving startctl down
This commit is contained in:
parent
69d940f64b
commit
01725debbb
@ -31,8 +31,6 @@ func main() {
|
|||||||
p = bluemonday.NewPolicy()
|
p = bluemonday.NewPolicy()
|
||||||
spaceReg = regexp.MustCompile(`\s+`)
|
spaceReg = regexp.MustCompile(`\s+`)
|
||||||
|
|
||||||
go startctl(reportPostChan)
|
|
||||||
|
|
||||||
for _, endpoint := range settings.Autostart {
|
for _, endpoint := range settings.Autostart {
|
||||||
log.Print("Autostarting " + endpoint)
|
log.Print("Autostarting " + endpoint)
|
||||||
ri_mutex.Lock()
|
ri_mutex.Lock()
|
||||||
@ -46,6 +44,8 @@ func main() {
|
|||||||
ri_mutex.Unlock()
|
ri_mutex.Unlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
go startctl(reportPostChan)
|
||||||
|
|
||||||
go webmain(reportPostChan)
|
go webmain(reportPostChan)
|
||||||
for { // Write posts
|
for { // Write posts
|
||||||
v := <-reportPostChan
|
v := <-reportPostChan
|
||||||
|
Loading…
x
Reference in New Issue
Block a user