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:
parent
5df31c16f7
commit
d88315d789
@ -27,6 +27,7 @@ fn (f mut Fetcher) fetch() {
|
|||||||
for {
|
for {
|
||||||
f.mu.lock()
|
f.mu.lock()
|
||||||
if f.cursor >= f.ids.len {
|
if f.cursor >= f.ids.len {
|
||||||
|
f.mu.unlock()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
id := f.ids[f.cursor]
|
id := f.ids[f.cursor]
|
||||||
|
Loading…
Reference in New Issue
Block a user