mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-01-14 22:18:43 +00:00
Fixed disconnecting should not be logged if disconnect does not actually happen.
This commit is contained in:
parent
0cf0006cff
commit
3608c5edfc
@ -232,12 +232,12 @@ namespace MpcNET
|
||||
|
||||
private Task DisconnectAsync(bool isExplicitDisconnect)
|
||||
{
|
||||
this.mpcConnectionReporter?.Disconnecting(isExplicitDisconnect);
|
||||
if (this.tcpClient == null)
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
this.mpcConnectionReporter?.Disconnecting(isExplicitDisconnect);
|
||||
this.ClearConnectionFields();
|
||||
this.mpcConnectionReporter?.Disconnected(isExplicitDisconnect);
|
||||
return Task.CompletedTask;
|
||||
|
@ -8,7 +8,7 @@
|
||||
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
|
||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
||||
<RootNamespace>MpcNET</RootNamespace>
|
||||
<Version>0.0.1-pre008</Version>
|
||||
<Version>0.0.1-pre009</Version>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<AssemblyVersion>0.0.1.0</AssemblyVersion>
|
||||
<FileVersion>0.0.1.0</FileVersion>
|
||||
|
Loading…
Reference in New Issue
Block a user