Fix infinitive reconnection
This commit is contained in:
1 parent
bd3ade8a8e
commit
3f92cc0f64
4 files changed
+11
-3
No files matched your search
@@ -87,6 +87,8 @@ namespace mROA.Implementation.Backend
|
||||
break;
|
||||
case EMessageType.ClientRecovery:
|
||||
{
|
||||
|
||||
interaction.BaseStream = null;
|
||||
var recoveryRequest = _serialization!.Deserialize<ClientRecovery>(connectionRequest.Data)!;
|
||||
var recoveryInteraction = _hub.GetInteraction(recoveryRequest.Id);
|
||||
recoveryInteraction.BaseStream = client.GetStream();
|
||||
|
||||
@@ -257,8 +257,12 @@ namespace mROA.Implementation
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Console.WriteLine("Interaction module disposed");
|
||||
_isActive = false;
|
||||
_currentReceiving?.Dispose();
|
||||
if (_currentReceiving is { IsCompleted: true })
|
||||
{
|
||||
_currentReceiving?.Dispose();
|
||||
}
|
||||
_baseStream?.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user