status-mobile/modules/react-native-status
angusiguess 49429c1c28 Add latch to ensure application messenger is set.
There are two ways that messages can reach the StatusService,
application events (which are handled via `handleEvent`) and
signal events (which are handled via `signalEvent`).

If a signal event fires before an application event, it still
uses handleEvent logic, and handleEvent will try to reply to
the message. If the `applicationMessenger` isn't set, the reply
fails and the react native app is never told that the status
node is running, which is why the app gets no messages.

I've added a CountDownLatch, forcing the event handler to wait
for the applicationMessenger to be set before replying to any
messages.

Tested by injecting a long wait into `handleMessage` and observing
the same failure we see in SauceLabs runs.
2017-10-09 18:39:14 +02:00
..
android Add latch to ensure application messenger is set. 2017-10-09 18:39:14 +02:00
ios/RCTStatus close app on switching from network with local LES (#2007) 2017-10-05 13:23:25 +02:00
index.js merged and refactored react-native-status 2016-09-07 20:35:04 +03:00
package.json merged and refactored react-native-status 2016-09-07 20:35:04 +03:00