mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-04 20:46:28 +01:00
exit thread when BT turned off
(The test was in the thread this replaced.)
This commit is contained in:
parent
23739f57b9
commit
9baffc93e3
1 changed files with 1 additions and 1 deletions
|
@ -1011,7 +1011,7 @@ public class BTService extends XWJIService {
|
||||||
// appropriate based on backoff logic, and be awakened when
|
// appropriate based on backoff logic, and be awakened when
|
||||||
// something new comes in or there's reason to hope a send try
|
// something new comes in or there's reason to hope a send try
|
||||||
// will succeed.
|
// will succeed.
|
||||||
while ( ! mShouldExit ) {
|
while ( BTEnabled() && ! mShouldExit ) {
|
||||||
synchronized ( this ) {
|
synchronized ( this ) {
|
||||||
if ( mExitWhenEmpty && 0 == mElems.size() ) {
|
if ( mExitWhenEmpty && 0 == mElems.size() ) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue