Commit ffab98d0 authored by Jens Korinth's avatar Jens Korinth
Browse files

Fix closing of watch thread in MultiFileWatcher

* related to #137
parent 6309f09d
...@@ -47,7 +47,8 @@ class MultiFileWatcher(pollInterval: Int = MultiFileWatcher.POLL_INTERVAL) exten ...@@ -47,7 +47,8 @@ class MultiFileWatcher(pollInterval: Int = MultiFileWatcher.POLL_INTERVAL) exten
/** Remove and close all files. */ /** Remove and close all files. */
def closeAll(): Unit = { def closeAll(): Unit = {
_files.clear _watchThread.set(None)
_files.synchronized { _files.clear }
_waitingFor.synchronized { _waitingFor.clear } _waitingFor.synchronized { _waitingFor.clear }
} }
......
Supports Markdown
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