fix exception launching in background

This commit is contained in:
Eric House 2020-09-06 17:51:42 -07:00
parent 6d74c4c16f
commit 7e19a4ef85

View file

@ -553,6 +553,12 @@ public class BTService extends XWJIService {
} catch ( IOException ioe ) {
m_serverSocket = null;
logIOE( ioe );
} catch ( SecurityException ex ) {
// Got this with a message saying not allowed to call
// listenUsingRfcommWithServiceRecord() in background (on
// Android 9)
m_serverSocket = null;
Log.ex( TAG, ex );
}
int nBadCount = 0;