Skip to content

Commit

Permalink
v2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
torum committed Dec 25, 2020
1 parent d40fd39 commit 91cefae
Show file tree
Hide file tree
Showing 8 changed files with 575 additions and 344 deletions.
4 changes: 0 additions & 4 deletions MPDCtrl-Desktop/MPDCtrl/MPDCtrl.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@
<Optimize>true</Optimize>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.Drawing.Common" Version="5.0.0" />
</ItemGroup>

<ItemGroup>
<Compile Update="Properties\Resources.Designer.cs">
<DesignTime>True</DesignTime>
Expand Down
5 changes: 4 additions & 1 deletion MPDCtrl-Desktop/MPDCtrl/Models/Classes/TCPClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,10 @@ public void Send(string cmd)

private void DoSend(Socket client, String data)
{
//DataSent?.Invoke(this, ">>" + data);
if ((ConnectionState == ConnectionStatus.Connected) || ConnectionState == ConnectionStatus.Connecting)
{ }
else { return; }


// Convert the string data to byte data using ASCII encoding.
byte[] byteData = Encoding.Default.GetBytes(data);
Expand Down
Loading

0 comments on commit 91cefae

Please sign in to comment.