Tribler / trustchain-android

An example android app for using trustchain
GNU Lesser General Public License v3.0
3 stars 2 forks source link

Stop network threads #53

Closed jonathanraes closed 6 years ago

jonathanraes commented 6 years ago

simple fix to exit the network threads when the application closes

wkmeijer commented 6 years ago

I still get the following exception:

06-20 09:44:52.567 29313-29452/nl.tudelft.cs4160.trustchain_android W/System.err: java.nio.channels.AsynchronousCloseException
06-20 09:44:52.568 29313-29452/nl.tudelft.cs4160.trustchain_android W/System.err:     at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:206)
        at sun.nio.ch.DatagramChannelImpl.receive(DatagramChannelImpl.java:422)
06-20 09:44:52.569 29313-29452/nl.tudelft.cs4160.trustchain_android W/System.err:     at nl.tudelft.cs4160.trustchain_android.network.Network.receive(Network.java:129)
        at nl.tudelft.cs4160.trustchain_android.main.OverviewConnectionsActivity.lambda$startListenThread$3$OverviewConnectionsActivity(OverviewConnectionsActivity.java:409)
        at nl.tudelft.cs4160.trustchain_android.main.OverviewConnectionsActivity$$Lambda$3.run(Unknown Source:4)

But the others close nicely.