returning if a thread is not alive should happen before any changes to
the list of workers, hence the return statement should be in the synchronized block. By: Andrew Ardill <andrew.ardill@gmail.com>
This commit is contained in:
parent
70098c0548
commit
ed40bc0373
1 changed files with 2 additions and 2 deletions
|
@ -61,8 +61,8 @@ public class CraftThreadManager {
|
||||||
return craftWorker.isAlive();
|
return craftWorker.isAlive();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
// didn't find it, so it must have been removed
|
// didn't find it, so it must have been removed
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue