thaliproject / Thali_CordovaPlugin

Thali p2p plugin
MIT License
226 stars 44 forks source link

ThaliCore: Stream.Event.endEncountered is not handled #1931

Closed enricogior closed 6 years ago

enricogior commented 6 years ago

VirtualSocket.handleEventOnInputStream() should handle the Stream.Event.endEncountered event and close the streams.

Same for VirtualSocket.handleEventOnOutputStream().

Because the event is not handled, the VirtualSocket is not closed, causing replication to fail when the max RunLoop entries are reached.

enricogior commented 6 years ago

Fixed in https://github.com/thaliproject/thali-ios/commits/master-enrico-error-handling-tmp