Skip to content

Commit

Permalink
Don't report ExceededTimeout if timeout is Duration.Zero
Browse files Browse the repository at this point in the history
  • Loading branch information
orrsella committed Apr 23, 2014
1 parent b372629 commit 8c87931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/com/wix/async/FuturePerfect.scala
Expand Up @@ -46,7 +46,7 @@ trait FuturePerfect extends Reporting[Event] {
val elapsedInBlockingCall = Stopwatch.start()
val res: T = nested
val duration = elapsedInBlockingCall()
if (duration > timeout) {
if (timeout != Duration.Zero && duration > timeout) {
report(ExceededTimeout(duration, executionName, res))
}

Expand Down

0 comments on commit 8c87931

Please sign in to comment.