1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2024-09-16 05:30:09 +00:00

Fixed disconnecting should not be logged if disconnect does not actually happen.

This commit is contained in:
Kim Hugener-Ohlsen 2019-09-21 23:09:34 +02:00
parent 0cf0006cff
commit 3608c5edfc
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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>