1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

news_fetcher: unlock mutex before terminating

This commit is contained in:
Robin Martijn 2019-08-26 15:55:40 +02:00 committed by Alexander Medvednikov
parent 5df31c16f7
commit d88315d789

View File

@ -27,6 +27,7 @@ fn (f mut Fetcher) fetch() {
for {
f.mu.lock()
if f.cursor >= f.ids.len {
f.mu.unlock()
return
}
id := f.ids[f.cursor]