Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuovi committed Sep 7, 2023
1 parent cf71f94 commit 4632d8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Net/BaseSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace XiaoFeng.Net
/// <summary>
/// 基础网络库
/// </summary>
public abstract class BaseSocket: Disposable,INetSocket
public abstract class BaseSocket : Disposable, INetSocket
{
#region 构造器
/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Net/SocketServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public override void Start()

#region 停止
/// <inheritdoc/>
public override void Stop()
public override void Stop()
{
if (this.Active)
{
Expand Down Expand Up @@ -559,7 +559,7 @@ private void CreateNewSocketIfNeeded()
{
this.Server.ExclusiveAddressUse = true;
}

if (OS.Platform.GetOSPlatform() == PlatformOS.Windows && this._AllowNatTraversal != null)
{
this.AllowNatTraversal(this._AllowNatTraversal.GetValueOrDefault());
Expand Down

0 comments on commit 4632d8b

Please sign in to comment.