Skip to content

Commit

Permalink
fix(NetworkServer): Suppress obsolete warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGadget1024 committed Jul 20, 2024
1 parent 350d9cd commit 86d8bc9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Assets/Mirror/Core/NetworkServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ static void Initialize()
static void AddTransportHandlers()
{
// += so that other systems can also hook into it (i.e. statistics)
#pragma warning disable CS0618 // Type or member is obsolete
Transport.active.OnServerConnected += OnTransportConnected;
#pragma warning restore CS0618 // Type or member is obsolete
Transport.active.OnServerConnectedWithAddress += OnTransportConnectedWithAddress;
Transport.active.OnServerDataReceived += OnTransportData;
Transport.active.OnServerDisconnected += OnTransportDisconnected;
Expand Down Expand Up @@ -264,7 +266,9 @@ public static void Shutdown()
static void RemoveTransportHandlers()
{
// -= so that other systems can also hook into it (i.e. statistics)
#pragma warning disable CS0618 // Type or member is obsolete
Transport.active.OnServerConnected -= OnTransportConnected;
#pragma warning restore CS0618 // Type or member is obsolete
Transport.active.OnServerConnectedWithAddress -= OnTransportConnectedWithAddress;
Transport.active.OnServerDataReceived -= OnTransportData;
Transport.active.OnServerDisconnected -= OnTransportDisconnected;
Expand Down

0 comments on commit 86d8bc9

Please sign in to comment.