Skip to content

Commit 034b23e

Browse files
author
Arnaud Bouchez
committed
fixed TServiceContainerServer.FakeCallbackRelease
1 parent d0c1be0 commit 034b23e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mormot.commit.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
'2.0.5'
1+
'2.0.6'

src/soa/mormot.soa.server.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,7 @@ procedure TServiceContainerServer.FakeCallbackRelease(
18471847
// avoid stack overflow ;)
18481848
fRestServer.InternalLog('%.FakeCallbackRelease(%,"%") remote call',
18491849
[ClassType, fakeID, Values[0].Name.Text], sllDebug);
1850-
fFakeCallbacks.Safe.ReadOnlyLock;
1850+
fFakeCallbacks.Safe.WriteLock; // may include a nested WriteLock (reentrant)
18511851
try
18521852
fake := FakeCallbackFind(
18531853
pointer(fFakeCallbacks.List), fFakeCallbacks.Count, connectionID, fakeID);
@@ -1882,7 +1882,7 @@ procedure TServiceContainerServer.FakeCallbackRelease(
18821882
Ctxt.Success;
18831883
end;
18841884
finally
1885-
fFakeCallbacks.Safe.ReadOnlyUnLock;
1885+
fFakeCallbacks.Safe.WriteUnLock;
18861886
end;
18871887
end;
18881888

0 commit comments

Comments
 (0)