Skip to content

Commit 37f834e

Browse files
committed
forum indexing loop fix
1 parent cd7b687 commit 37f834e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

server/forum_indexer.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,15 @@ func (indexer *ForumIndexer) run() {
8989
for _, host := range hosts {
9090
host := host
9191
go func() {
92-
for _, account := range accounts {
93-
select {
94-
case <-indexer.closeSignal:
95-
return
96-
default:
97-
indexer.index(host, account, timezone)
98-
time.Sleep(time.Second)
92+
for {
93+
for _, account := range accounts {
94+
select {
95+
case <-indexer.closeSignal:
96+
return
97+
default:
98+
indexer.index(host, account, timezone)
99+
time.Sleep(time.Second)
100+
}
99101
}
100102
}
101103
}()

0 commit comments

Comments
 (0)