Skip to content

Commit

Permalink
Try to connect until mdf_consume returns -1 or the ConnectionTimeout …
Browse files Browse the repository at this point in the history
…has expired.
  • Loading branch information
mgnsm committed Jun 13, 2019
1 parent 4ea44a7 commit 677a36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Millistream.Streaming/DataFeed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ public bool Connect(string host, string username, string password)
}
}
break;
default:
case -1:
return false;
}
} while (DateTime.UtcNow.Subtract(startTime).TotalSeconds < connectionTimeout);
Expand Down

0 comments on commit 677a36e

Please sign in to comment.