It happened when too many timers were firing, but I think this code's
better anyway.
This commit is contained in:
Eric House 2018-12-04 19:59:42 -08:00
parent 95cd6d084d
commit 83d0914145

View file

@ -1131,13 +1131,16 @@ public class BTService extends XWService {
private void stopListener()
{
m_listener.stopListening();
try {
m_listener.join( 100 );
} catch ( InterruptedException ie ) {
Log.ex( TAG, ie );
BTListenerThread listener = m_listener;
if ( listener != null ) {
m_listener = null;
listener.stopListening();
try {
listener.join( 100 );
} catch ( InterruptedException ie ) {
Log.ex( TAG, ie );
}
}
m_listener = null;
}
private void stopSender()