mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-13 20:46:34 +00:00
# PDC-5 AddQueueToGenericUdpServer
- Removed the Finally statement. Using finally caused a null refence exception for the CCriticalSection object at shutdown.
This commit is contained in:
parent
9e76a817fc
commit
b3a003352e
1 changed files with 13 additions and 13 deletions
|
|
@ -237,9 +237,9 @@ namespace PepperDash.Core
|
||||||
{
|
{
|
||||||
Debug.Console(0, "GenericUdpServer DequeueEvent error: {0}\r", e);
|
Debug.Console(0, "GenericUdpServer DequeueEvent error: {0}\r", e);
|
||||||
}
|
}
|
||||||
finally
|
|
||||||
{
|
|
||||||
// Make sure to leave the CCritical section in case an exception above stops this thread, or we won't be able to restart it.
|
// Make sure to leave the CCritical section in case an exception above stops this thread, or we won't be able to restart it.
|
||||||
|
if (DequeueLock != null)
|
||||||
|
{
|
||||||
DequeueLock.Leave();
|
DequeueLock.Leave();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue