mirror of
https://github.com/PAMGuard/PAMGuard.git
synced 2024-11-25 08:32:32 +00:00
Update MHTClickTrainAlgorithm.java
Synchronize calls into MHT Algorithm across threads (can mess up during restarts otherwise)
This commit is contained in:
parent
e491028ef7
commit
156952bafe
@ -420,7 +420,7 @@ public class MHTClickTrainAlgorithm implements ClickTrainAlgorithm, PamSettings
|
|||||||
* Update the algorithm
|
* Update the algorithm
|
||||||
* @param flag- flag indicating the update type.
|
* @param flag- flag indicating the update type.
|
||||||
*/
|
*/
|
||||||
public void update(int flag, Object info) {
|
public synchronized void update(int flag, Object info) {
|
||||||
|
|
||||||
if (Thread.currentThread() != previousThread) {
|
if (Thread.currentThread() != previousThread) {
|
||||||
// see flag id constants in ClickTrianControl
|
// see flag id constants in ClickTrianControl
|
||||||
|
Loading…
Reference in New Issue
Block a user