Closed peplin closed 11 years ago
I refactored all of the BytestreamDataSource implementations so it's easier to follow and reason to be thread safe. Part of the problem was that if you switched the MAC address, we took a really naive approach to change the resource - we changed it in the preferences, stopped and started the source. Of course not everything was restarted properly when we did this. I changed it so that we keep the thread running, but break the socket so the main data source thread will attempt to reconnect to the latest URI.
Continuing this never ending saga, today I disabled the BT interface but noticed it was still trying to connect in the background. This thread was stuck:
as was this one:
there were 2 blocked threads for the NetworkDataSource, too, so this is probably directly related to #75.