From d88315d7895e00a47083f7294d71322e573fe987 Mon Sep 17 00:00:00 2001 From: Robin Martijn Date: Mon, 26 Aug 2019 15:55:40 +0200 Subject: [PATCH] news_fetcher: unlock mutex before terminating --- examples/news_fetcher.v | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/news_fetcher.v b/examples/news_fetcher.v index f2df8aea89..6310323904 100644 --- a/examples/news_fetcher.v +++ b/examples/news_fetcher.v @@ -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]