diff options
-rw-r--r-- | src/rexi_server.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rexi_server.erl b/src/rexi_server.erl index 5fc342bc..c4dc740d 100644 --- a/src/rexi_server.erl +++ b/src/rexi_server.erl @@ -27,7 +27,7 @@ handle_cast({doit, From, MFA}, #st{workers=Workers} = St) -> handle_cast({kill, FromRef}, #st{workers=Workers} = St) -> case find_worker_from(FromRef, Workers) of {Pid, KeyRef, {_, FromRef}} -> - erlang:demonitor(Ref), + erlang:demonitor(KeyRef), exit(Pid, kill), {noreply, St#st{workers = remove_worker(KeyRef, Workers)}}; false -> |