BlueBubblesApp / bluebubbles-app

A cross-platform app ecosystem, bringing iMessage to Android, PC (Windows, Linux, & even macOS), and Web!
https://bluebubbles.app
Apache License 2.0
668 stars 93 forks source link

Fix race condition when delivering background messages #2713

Closed TaeHagen closed 2 months ago

TaeHagen commented 2 months ago

https://discord.com/channels/640229510662455326/781023536168304641/1226580773348577401

The first task that spins up an isolate can send the task before the isolate is listening, leading to the task never starting or completing and the isolate running indefinitely. Subsequent messages are handled by the indefinitely running isolate just fine.