Skip to content

Commit

Permalink
fixed TServiceContainerServer.FakeCallbackRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Feb 28, 2022
1 parent d0c1be0 commit 034b23e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mormot.commit.inc
@@ -1 +1 @@
'2.0.5'
'2.0.6'
4 changes: 2 additions & 2 deletions src/soa/mormot.soa.server.pas
Expand Up @@ -1847,7 +1847,7 @@ procedure TServiceContainerServer.FakeCallbackRelease(
// avoid stack overflow ;)
fRestServer.InternalLog('%.FakeCallbackRelease(%,"%") remote call',
[ClassType, fakeID, Values[0].Name.Text], sllDebug);
fFakeCallbacks.Safe.ReadOnlyLock;
fFakeCallbacks.Safe.WriteLock; // may include a nested WriteLock (reentrant)
try
fake := FakeCallbackFind(
pointer(fFakeCallbacks.List), fFakeCallbacks.Count, connectionID, fakeID);
Expand Down Expand Up @@ -1882,7 +1882,7 @@ procedure TServiceContainerServer.FakeCallbackRelease(
Ctxt.Success;
end;
finally
fFakeCallbacks.Safe.ReadOnlyUnLock;
fFakeCallbacks.Safe.WriteUnLock;
end;
end;

Expand Down

0 comments on commit 034b23e

Please sign in to comment.