LtbLightning / bdk-rn

Bitcoin Development Kit - React Native Module
MIT License
50 stars 15 forks source link

[Android] Bugfix/catch errors within threads #64

Closed Czino closed 9 months ago

Czino commented 12 months ago

I found when the electrum server is not reachable, the error within the sync function is not caught.

The whole react-native app crashes.

Moving the try-catch block inside the Thread fixes the issue