Skip to content

Commit

Permalink
Dialyzer suggestions.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlouis committed Aug 11, 2011
1 parent 4dbcb50 commit 15da18d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions src/utp_buffer.erl
Expand Up @@ -590,8 +590,6 @@ view_inflight_bytes(#buffer{ retransmission_queue = Q }) ->
bytes_free_in_window(PktBuf, Network) ->
MaxSend = utp_network:max_window_send(Network),
case view_inflight_bytes(PktBuf) of
buffer_full ->
0;
buffer_empty ->
MaxSend;
{ok, Inflight} when Inflight =< MaxSend ->
Expand Down
7 changes: 1 addition & 6 deletions src/utp_test.erl
Expand Up @@ -243,12 +243,7 @@ test_piggyback_in(Data, Options) ->

test_recv_large_file(Data, Options) ->
Sz = byte_size(Data),
case listen(Options) of
ok ->
ignore;
{error, ealreadylistening} ->
ignore
end,
ok = listen(Options),
{ok, Port} = gen_utp:accept(),
{ok, Data} = gen_utp:recv(Port, Sz),
ok = gen_utp:close(Port),
Expand Down

0 comments on commit 15da18d

Please sign in to comment.