Skip to content
Snippets Groups Projects
Commit 43423f38 authored by Daniel Felipe González Obando's avatar Daniel Felipe González Obando
Browse files

On version 1.8.1-SNAPSHOT

- clean progress listener after projection calculation on plugin
parent 00be9f35
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@
<!-- Project Information -->
<artifactId>intensity-projection</artifactId>
<version>1.8.0</version>
<version>1.8.1-SNAPSHOT</version>
<packaging>jar</packaging>
......
......@@ -187,7 +187,18 @@ public class Projection extends EzPlug implements Block, EzStoppable
{
calculator.addProgressListener(this::onProgress);
}
resultSequence = calculator.call();
try
{
resultSequence = calculator.call();
}
finally
{
if (!isHeadLess())
{
calculator.removeProgressListener(this::onProgress);
}
}
}
private void onProgress(double progress, String message)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment