Fixes null propogation
This commit is contained in:
parent
22ab83ea9e
commit
3c9842ee5a
218 changed files with 799 additions and 1458 deletions
|
|
@ -238,9 +238,7 @@ namespace Server.Network
|
|||
|
||||
if (Core.Profiling) prof = PacketReceiveProfile.Acquire( packetID );
|
||||
|
||||
if ( prof != null ) {
|
||||
prof.Start();
|
||||
}
|
||||
prof?.Start();
|
||||
|
||||
byte[] packetBuffer;
|
||||
|
||||
|
|
@ -259,9 +257,7 @@ namespace Server.Network
|
|||
if ( BufferSize >= packetLength )
|
||||
m_Buffers.ReleaseBuffer( packetBuffer );
|
||||
|
||||
if ( prof != null ) {
|
||||
prof.Finish( packetLength );
|
||||
}
|
||||
prof?.Finish( packetLength );
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue