Closed jonathanraes closed 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.
simple fix to exit the network threads when the application closes