diff options
Diffstat (limited to 'src/IvyWatcher.java')
-rwxr-xr-x | src/IvyWatcher.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/IvyWatcher.java b/src/IvyWatcher.java index 7157c18..b54a08f 100755 --- a/src/IvyWatcher.java +++ b/src/IvyWatcher.java @@ -22,6 +22,9 @@ import java.util.Enumeration; * thing. * * CHANGELOG: + * 1.2.3: + * - checks whether I have been interrupted just after the receive (start() + * then stop() immediately). * 1.2.1: * - changed the fill character from 0 to 10, in order to prevent a nasty bug * on Windows XP machines @@ -87,6 +90,7 @@ class IvyWatcher implements Runnable { int port; try { broadcast.receive(packet); + if (listenThread!=thisThread) break; // I was summoned to leave during the receive String msg = new String(packet.getData()) ; for (int i=0;i<buf.length;i++) { buf[i]=10; } // clean up the buffer after each message |