fixed termination of collection...

This commit is contained in:
ebner 2013-07-01 10:46:44 +02:00
parent 1c580688ff
commit 0971db10e2
2 changed files with 10 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>ch.psi</groupId> <groupId>ch.psi</groupId>
<artifactId>ch.psi.imagej.zeromq</artifactId> <artifactId>ch.psi.imagej.zeromq</artifactId>
<version>0.0.6-SNAPSHOT</version> <version>0.0.7</version>
<dependencies> <dependencies>
<dependency> <dependency>

View File

@ -131,7 +131,14 @@ public class ZeroMQViewer implements PlugIn {
} }
catch(Exception e){ catch(Exception e){
logger.log(Level.SEVERE, "",e); logger.log(Level.SEVERE, "",e);
btnStart.setText("Start"); }
finally{
try{
socket.close();
context.term();
}
catch(Exception e){
}
} }
} }
@ -312,8 +319,7 @@ public class ZeroMQViewer implements PlugIn {
try{ try{
socket.notifyAll(); socket.notifyAll();
} }
catch(Exception ex){ catch(Exception ex){ // This exception can savely be ignored (somewhat most of the time an exception is expected)
// This exception can savely be ignored (somewhat most of the time an exception is expected)
} }
btnStart.setText("Start"); btnStart.setText("Start");
} }