Skip to content

Commit 7ba6d35

Browse files
committed
CommsInjection: make exception type more specific
1 parent a216172 commit 7ba6d35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ExtLibs/Comms/CommsInjection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public int Read(byte[] buffer, int offset, int count)
6060
{
6161
Thread.Sleep(1);
6262
if (counttimeout > ReadTimeout)
63-
throw new Exception("CommsInjection Timeout on read");
63+
throw new TimeoutException("CommsInjection Timeout on read");
6464
counttimeout++;
6565
}
6666

0 commit comments

Comments
 (0)