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,
|
||||
MESG_SEND,
|
||||
MESG_ACCPT,
|
||||
MESG__DECL,
|
||||
MESG_DECL,
|
||||
};
|
||||
|
||||
private class BTQueueElem {
|
||||
|
@ -286,8 +286,8 @@ public class BTService extends Service {
|
|||
DataInputStream inStream = null;
|
||||
int nRead = 0;
|
||||
try {
|
||||
DbgUtils.logf( "run: calling accept()" );
|
||||
socket = serverSocket.accept(); // blocks
|
||||
DbgUtils.logf( "run: calling accept(60000)" );
|
||||
socket = serverSocket.accept( 60000 ); // blocks
|
||||
addAddr( socket );
|
||||
DbgUtils.logf( "run: accept() returned" );
|
||||
inStream = new DataInputStream( socket.getInputStream() );
|
||||
|
|
Loading…
Reference in a new issue