mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-02 20:46:15 +01:00
fix exception launching in background
This commit is contained in:
parent
6d74c4c16f
commit
7e19a4ef85
1 changed files with 6 additions and 0 deletions
|
@ -553,6 +553,12 @@ public class BTService extends XWJIService {
|
||||||
} catch ( IOException ioe ) {
|
} catch ( IOException ioe ) {
|
||||||
m_serverSocket = null;
|
m_serverSocket = null;
|
||||||
logIOE( ioe );
|
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;
|
int nBadCount = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue