Skip to content

Commit

Permalink
fix isFirstPoll not setting to false on first pass
Browse files Browse the repository at this point in the history
  • Loading branch information
samgst-amazon committed Nov 29, 2024
1 parent b2e012a commit 1c6f0d4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ internal final class NotificationPollingService : Disposable {

fun startPolling() {
val newNotifications = runBlocking { pollForNotifications() }
isFirstPoll.set(false)
if (newNotifications) {
notifyObservers()
}
Expand Down

0 comments on commit 1c6f0d4

Please sign in to comment.