Skip to content
Browse files

Make sure the client blows up on errors

  • Loading branch information...
1 parent 84fc42c commit 38f07605aa9e27f0dcc50ccf2144aeb606dd6596 @johannesh johannesh committed Apr 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/bitturret/src/client.erl
View
2 apps/bitturret/src/client.erl
@@ -19,7 +19,7 @@ start(LocalIp, LocalPort, RemoteIp, RemotePort, PacketsPerSec) ->
loop_send(Socket, RemoteIp, RemotePort, PacketsPerSec) ->
{Dur, _} = timer:tc(fun() ->
times(PacketsPerSec, fun() ->
- gen_udp:send(Socket, RemoteIp, RemotePort, ?MSG)
+ ok = gen_udp:send(Socket, RemoteIp, RemotePort, ?MSG)
end)
end),
SleepDur = erlang:trunc(1000 - (Dur / 1000)),

0 comments on commit 38f0760

Please sign in to comment.
Something went wrong with that request. Please try again.