mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
run accept() with timeout so it'll show up in logs when the thread
died. I hope.
This commit is contained in:
parent
cc9f2b793e
commit
bc8299fe30
1 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ public class BTService extends Service {
|
||||||
INVITE_DUPID,
|
INVITE_DUPID,
|
||||||
MESG_SEND,
|
MESG_SEND,
|
||||||
MESG_ACCPT,
|
MESG_ACCPT,
|
||||||
MESG__DECL,
|
MESG_DECL,
|
||||||
};
|
};
|
||||||
|
|
||||||
private class BTQueueElem {
|
private class BTQueueElem {
|
||||||
|
@ -286,8 +286,8 @@ public class BTService extends Service {
|
||||||
DataInputStream inStream = null;
|
DataInputStream inStream = null;
|
||||||
int nRead = 0;
|
int nRead = 0;
|
||||||
try {
|
try {
|
||||||
DbgUtils.logf( "run: calling accept()" );
|
DbgUtils.logf( "run: calling accept(60000)" );
|
||||||
socket = serverSocket.accept(); // blocks
|
socket = serverSocket.accept( 60000 ); // blocks
|
||||||
addAddr( socket );
|
addAddr( socket );
|
||||||
DbgUtils.logf( "run: accept() returned" );
|
DbgUtils.logf( "run: accept() returned" );
|
||||||
inStream = new DataInputStream( socket.getInputStream() );
|
inStream = new DataInputStream( socket.getInputStream() );
|
||||||
|
|
Loading…
Reference in a new issue