Permalink
Browse files

Fixing bug found by dialyzer.

  • Loading branch information...
ngerakines committed Sep 27, 2008
1 parent b5bacab commit 5bd05e09ae7378e35d103fda03a0e25e59e86540
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/twitter_client.erl
View
@@ -159,7 +159,7 @@ handle_call({delay, Delay}, _From, State) ->
%% Should work .. I think
handle_call({should_wait}, _From, State) ->
Now = calendar:datetime_to_gregorian_seconds(erlang:universaltime()),
- Delay = case xx of
+ Delay = case State#erlang_twitter.delay of
0 -> 0;
Time when Time + State#erlang_twitter.delay < Now -> 0;
_ -> State#erlang_twitter.delay

0 comments on commit 5bd05e0

Please sign in to comment.