mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
increment metric only if queue is not null
This commit is contained in:
@@ -78,7 +78,9 @@ public class FeedRefreshTaskGiver {
|
||||
|
||||
feed = takeQueue.poll();
|
||||
}
|
||||
metricsBean.feedRefreshed();
|
||||
if (feed != null) {
|
||||
metricsBean.feedRefreshed();
|
||||
}
|
||||
return feed;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user