Commit 904669f1 authored by Artem Prilutskiy's avatar Artem Prilutskiy

Added extra check of interval

parent d7b3f4be
......@@ -300,6 +300,9 @@ int WaitForRewindSessionEnd(struct RewindContext* context, struct RewindSessionP
struct timeval threshold1;
struct timeval threshold2;
if (interval1 < RECEIVE_TIMEOUT)
interval1 = RECEIVE_TIMEOUT;
gettimeofday(&now, NULL);
threshold1.tv_sec = now.tv_sec + interval1 + interval2;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment