aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test/dummy_via.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-02-28 13:40:18 +0100
committerBjörn Gustavsson <[email protected]>2016-03-09 13:20:00 +0100
commit22785cd1e21600365e71fb0bd2835e5b53de8764 (patch)
tree3f8a1a9fe9c138ef89fde4c763a1bc0e2ae704f7 /lib/stdlib/test/dummy_via.erl
parente59b1c5ad43c010e6d7dd3d2eabc10df156fcc61 (diff)
downloadotp-22785cd1e21600365e71fb0bd2835e5b53de8764.tar.gz
otp-22785cd1e21600365e71fb0bd2835e5b53de8764.tar.bz2
otp-22785cd1e21600365e71fb0bd2835e5b53de8764.zip
Eliminate use of test_server:messages_get/0
Diffstat (limited to 'lib/stdlib/test/dummy_via.erl')
-rw-r--r--lib/stdlib/test/dummy_via.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/stdlib/test/dummy_via.erl b/lib/stdlib/test/dummy_via.erl
index e405811cbe..026b329688 100644
--- a/lib/stdlib/test/dummy_via.erl
+++ b/lib/stdlib/test/dummy_via.erl
@@ -50,8 +50,10 @@ call(Req) ->
{'DOWN', MRef, _, _, _} ->
erlang:error(badarg);
{MRef, badarg} ->
+ erlang:demonitor(MRef),
erlang:error(badarg);
{MRef, Reply} ->
+ erlang:demonitor(MRef),
Reply
after 5000 ->
erlang:error(timeout)