Skip to content
This repository was archived by the owner on Dec 23, 2022. It is now read-only.

Commit 4f20536

Browse files
committed
Fixed RemoteConClient not throwing UnitTest exceptions
1 parent 1a6431e commit 4f20536

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

RCONServerLib/RCONServerLib.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<iconUrl>https://user-images.githubusercontent.com/20743379/35411973-0227102e-021b-11e8-9a1b-023e08c33c4e.png</iconUrl>
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1313
<description>
14-
Easy to use, single-class solution to create a Valve source RCON server which supports authentication,
15-
IP Whitelisting and a command manager
14+
Easy to use, single-class solution to create a Valve source RCON server which supports authentication,
15+
IP Whitelisting and a command manager
1616
</description>
1717
<summary>Single class solution to create a source compatible RCON interface</summary>
1818
<releaseNotes>Initial Release.</releaseNotes>

RCONServerLib/RemoteConClient.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,18 @@ internal void ParsePacket(byte[] rawPacket)
276276
commandResult));
277277
}
278278
}
279+
catch (NotAuthenticatedException e)
280+
{
281+
throw;
282+
}
283+
catch (InvalidPacketTypeException e)
284+
{
285+
throw;
286+
}
287+
catch (EmptyPacketPayloadException e)
288+
{
289+
throw;
290+
}
279291
catch (Exception e)
280292
{
281293
Debug.WriteLine(string.Format("Client {0} caused an exception: {1} and was killed.",

0 commit comments

Comments
 (0)