You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streams.apache.org by mf...@apache.org on 2014/07/02 19:14:17 UTC

git commit: Fixed bug where setting -1 timeout would result in a default timeout

Repository: incubator-streams
Updated Branches:
  refs/heads/master c1246d963 -> b68828b0f


Fixed bug where setting -1 timeout would result in a default timeout


Project: http://git-wip-us.apache.org/repos/asf/incubator-streams/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-streams/commit/b68828b0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-streams/tree/b68828b0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-streams/diff/b68828b0

Branch: refs/heads/master
Commit: b68828b0fb3053457d36c6b0a60a5f03144666f6
Parents: c1246d9
Author: mfranklin <mf...@apache.org>
Authored: Wed Jul 2 13:14:12 2014 -0400
Committer: mfranklin <mf...@apache.org>
Committed: Wed Jul 2 13:14:12 2014 -0400

----------------------------------------------------------------------
 .../java/org/apache/streams/local/builders/StreamComponent.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-streams/blob/b68828b0/streams-runtimes/streams-runtime-local/src/main/java/org/apache/streams/local/builders/StreamComponent.java
----------------------------------------------------------------------
diff --git a/streams-runtimes/streams-runtime-local/src/main/java/org/apache/streams/local/builders/StreamComponent.java b/streams-runtimes/streams-runtime-local/src/main/java/org/apache/streams/local/builders/StreamComponent.java
index 87b5dd8..8611bbb 100644
--- a/streams-runtimes/streams-runtime-local/src/main/java/org/apache/streams/local/builders/StreamComponent.java
+++ b/streams-runtimes/streams-runtime-local/src/main/java/org/apache/streams/local/builders/StreamComponent.java
@@ -222,7 +222,7 @@ public class StreamComponent {
             else
                 task = new StreamsProviderTask(prov, this.dateRange[0], this.dateRange[1]);
             //Adjust the timeout if necessary
-            if(timeout > 0) {
+            if(timeout != 0) {
                 ((StreamsProviderTask)task).setTimeout(timeout);
             }
             for(Queue<StreamsDatum> q : this.outBound.values()) {