diff --git a/lib/em-dir-watcher/platform/windows.rb b/lib/em-dir-watcher/platform/windows.rb index 2372493..03c315b 100644 --- a/lib/em-dir-watcher/platform/windows.rb +++ b/lib/em-dir-watcher/platform/windows.rb @@ -32,6 +32,8 @@ def initialize path, inclusions, exclusions, &handler start_server setup_listener + + ::Kernel.at_exit { self.stop } # ensure kill child process end def when_ready_to_use &ready_to_use_handler