Skip to content
Snippets Groups Projects
Commit d280e263 authored by falood's avatar falood
Browse files

bugfix: stop event server when port process be killed

parent af551158
No related branches found
No related tags found
No related merge requests found
...@@ -131,7 +131,7 @@ defmodule FileSystem.Backends.FSInotify do ...@@ -131,7 +131,7 @@ defmodule FileSystem.Backends.FSInotify do
def handle_info({:EXIT, port, _reason}, %{port: port}=state) do def handle_info({:EXIT, port, _reason}, %{port: port}=state) do
send(state.worker_pid, {:backend_file_event, self(), :stop}) send(state.worker_pid, {:backend_file_event, self(), :stop})
{:noreply, state} {:stop, :normal, state}
end end
def handle_info(_, state) do def handle_info(_, state) do
......
...@@ -162,7 +162,7 @@ defmodule FileSystem.Backends.FSMac do ...@@ -162,7 +162,7 @@ defmodule FileSystem.Backends.FSMac do
def handle_info({:EXIT, port, _reason}, %{port: port}=state) do def handle_info({:EXIT, port, _reason}, %{port: port}=state) do
send(state.worker_pid, {:backend_file_event, self(), :stop}) send(state.worker_pid, {:backend_file_event, self(), :stop})
{:noreply, state} {:stop, :normal, state}
end end
def handle_info(_, state) do def handle_info(_, state) do
......
...@@ -136,7 +136,7 @@ defmodule FileSystem.Backends.FSWindows do ...@@ -136,7 +136,7 @@ defmodule FileSystem.Backends.FSWindows do
def handle_info({:EXIT, port, _reason}, %{port: port}=state) do def handle_info({:EXIT, port, _reason}, %{port: port}=state) do
send(state.worker_pid, {:backend_file_event, self(), :stop}) send(state.worker_pid, {:backend_file_event, self(), :stop})
{:noreply, state} {:stop, :normal, state}
end end
def handle_info(_, state) do def handle_info(_, state) do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment