Rapsssito / react-native-tcp-socket

React Native TCP socket API for Android, iOS & macOS with SSL/TLS support.
MIT License
316 stars 82 forks source link

fix: android crash when socket is null fixed #160

Closed salihgun closed 1 year ago

mrpoodestump commented 1 year ago

This is causing a crash for me too, any chance we can get this merged?

salihgun commented 1 year ago

This is causing a crash for me too, any chance we can get this merged?

Hi, you can get this merge by running this command: yarn add https://github.com/salihgun/react-native-tcp-socket.git

mrpoodestump commented 1 year ago

Oh awesome good to know, I had some async tasks that were trying to use the write method on the null socket after my client disconnected, I got around the exception by canceling the async tasks on unmount.

erayoezmue commented 1 year ago

will this be merged soon?

Rapsssito commented 1 year ago

Thanks for the PR! This fix has been implemented in 59d3195a8c68eddb0341c8264d712ed2266d23b5