Skip to content

Commit

Permalink
Changes after code review of proposed solution in issue #84
Browse files Browse the repository at this point in the history
  • Loading branch information
SchneiderInfosystems committed May 18, 2021
1 parent 5265a48 commit 4538b33
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Source/FB4D.FireStore.Listener.pas
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ procedure TFSListenerThread.Execute;
fOnAuthRevoked(not fRequireTokenRenew);
end);
end;
Yozu finally
finally
FreeAndNil(fClient);
end;
end;
Expand Down Expand Up @@ -917,6 +917,8 @@ procedure TFSListenerThread.OnEndListenerGet(const ASyncResult: IAsyncResult);
var
Resp: IHTTPResponse;
begin
if TFirebaseHelpers.AppIsTerminated then
exit;
try
if not assigned(fClient) then
begin
Expand Down Expand Up @@ -1052,6 +1054,8 @@ procedure TFSListenerThread.OnRecData(const Sender: TObject; ContentLength,
StreamReadFailed: boolean;
len: Int64;
begin
if TFirebaseHelpers.AppIsTerminated then
exit;
try
fLastReceivedMsg := Now;
len := ReadCount - fReadPos;
Expand Down
2 changes: 1 addition & 1 deletion Source/FB4DVersion.inc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ const
cLibMajorVersion = 1;
cLibMinorVersion = 2;
cLibReleaseVersion = 4;
cLibBuildVersion = 384; // Number of commits since start in GitHub
cLibBuildVersion = 385; // Number of commits since start in GitHub

0 comments on commit 4538b33

Please sign in to comment.