Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure final message before 'empty' is ready for notification #1522

Merged
merged 1 commit into from
Sep 29, 2017

Conversation

scottnonnenberg
Copy link
Contributor

Without this change, there's a race condition for the notification we show when we get the 'empty' event after a large backlog download. If four messages have come in, the last might not be included in the first notification. So the count shown would be three. And then, when the final message's notify() call does finish, another notification would be shown.

Without this change, there's a race condition for the notification we
show when we get the 'empty' event after a large backlog download. Four
messages may have come in, but the last might not be notified. So the
count shown would be three. And then, when the final message's notify()
call finishes, another notification would be shown.

FREEBIE
@scottnonnenberg scottnonnenberg merged commit 3815204 into master Sep 29, 2017
@scottnonnenberg scottnonnenberg deleted the notification-race branch September 29, 2017 16:58
scottnonnenberg added a commit that referenced this pull request Sep 29, 2017
Make long-lived socket connections more reliable (#1511)

Show offline state faster on loss of network access (#1512)

Notifications:
  - Only show notifications when a large backlog download is complete
    (#1507)
  - Ensure final message before 'empty' is ready for notification
    (#1522)

Ensure we always replace $name$ variable in strings (#1520)

Update strings for fa, no, pt_BR, pt_PT, ro, zh_CN, zh_TW (#1517)

Update electron to v1.6.14 to get security fix (#1519)

Eliminate warning on Windows installation with code-signing (#1513)

Dev:
  - Move logging to disk via bunyan - should make message processing
    faster! (#1506)
  - Only retry messages on startup, not every reconnect (#1510)
  - Log call messages instead of throwing error (#1504)
  - Redact group ids in logging
    (4c48d12)
  - Remove manifest.json from project
    (3a3f249)

FREEBIE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant