Skip to content

Commit

Permalink
Solve issue after 1 hour operation in RTDB Listener: Invalid stream r…
Browse files Browse the repository at this point in the history
…ead count
  • Loading branch information
SchneiderInfosystems committed Jan 18, 2019
1 parent 967b192 commit 5c01f3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/FB4D.RealTimeDB.pas
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,8 @@ function TRealTimeDB.ListenForValueEvents(ResourceParams: TRequestResourceParam;
if fRequireTokenRefresh then
fAuth.CheckAndRefreshTokenSynchronous;
fClient.Get(URL + TFirebaseHelpers.EncodeToken(fAuth.Token), fStream);
fReadPos := 0;
fStream.Position := 0;
end;
except
on e: exception do
Expand Down

0 comments on commit 5c01f3b

Please sign in to comment.