Skip to content

Commit

Permalink
Don't try to dispatch the client events to a disposed remoting session.
Browse files Browse the repository at this point in the history
  • Loading branch information
yallie committed Nov 21, 2024
1 parent 04b7675 commit 4c9f9d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CoreRemoting/RemotingSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ internal RemotingSession(int keySize, byte[] clientPublicKey, IRemotingServer se
_remoteDelegateInvocationEventAggregator.RemoteDelegateInvocationNeeded +=
(_, uniqueCallKey, handlerKey, arguments) =>
{
if (_isDisposing)
return null;

var sharedSecret =
MessageEncryption
? _sessionId.ToByteArray()
Expand Down

0 comments on commit 4c9f9d6

Please sign in to comment.