Skip to content

Commit

Permalink
TcpServer call OnConnected after object disposed #115
Browse files Browse the repository at this point in the history
  • Loading branch information
chronoxor committed Feb 22, 2021
1 parent 9ab43e3 commit ca50b37
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Specify version format
version: "5.0.10.{build}"
version: "5.0.11.{build}"

# Image to use
image: Visual Studio 2019
Expand Down
2 changes: 1 addition & 1 deletion source/NetCoreServer/NetCoreServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<Version>5.0.10.0</Version>
<Version>5.0.11.0</Version>
<Authors>Ivan Shynkarenka</Authors>
<Copyright>Copyright (c) 2019-2021 Ivan Shynkarenka</Copyright>
<RepositoryUrl>https://github.com/chronoxor/NetCoreServer</RepositoryUrl>
Expand Down
2 changes: 1 addition & 1 deletion source/NetCoreServer/SslClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ public virtual bool SendAsync(byte[] buffer, long offset, long size)
_sending = true;

// Try to send the main buffer
Task.Factory.StartNew(TrySend);
TrySend();
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion source/NetCoreServer/SslSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public virtual bool SendAsync(byte[] buffer, long offset, long size)
_sending = true;

// Try to send the main buffer
Task.Factory.StartNew(TrySend);
TrySend();
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion source/NetCoreServer/TcpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ public virtual bool SendAsync(byte[] buffer, long offset, long size)
_sending = true;

// Try to send the main buffer
Task.Factory.StartNew(TrySend);
TrySend();
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion source/NetCoreServer/TcpSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public virtual bool SendAsync(byte[] buffer, long offset, long size)
_sending = true;

// Try to send the main buffer
Task.Factory.StartNew(TrySend);
TrySend();
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion source/NetCoreServer/UdpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ public virtual bool SendAsync(EndPoint endpoint, byte[] buffer, long offset, lon
_sendEndpoint = endpoint;

// Try to send the main buffer
Task.Factory.StartNew(TrySend);
TrySend();

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion source/NetCoreServer/UdpServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public virtual bool SendAsync(EndPoint endpoint, byte[] buffer, long offset, lon
_sendEndpoint = endpoint;

// Try to send the main buffer
Task.Factory.StartNew(TrySend);
TrySend();

return true;
}
Expand Down

0 comments on commit ca50b37

Please sign in to comment.