Skip to content
Snippets Groups Projects
Commit 905c14a8 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

avoid exception by not joining (closing) thread if already null

parent a4bfe03f
No related branches found
No related tags found
No related merge requests found
...@@ -537,8 +537,10 @@ public class DisThreadedNetworkInterface ...@@ -537,8 +537,10 @@ public class DisThreadedNetworkInterface
try try
{ {
senderThread.join(4000); // wait for thread to die, msec max duration if (senderThread != null)
receiverThread.join(4000); // wait for thread to die, msec max duration senderThread.join(4000); // wait for thread to die, msec max duration
if (receiverThread != null)
receiverThread.join(4000); // wait for thread to die, msec max duration
senderThread = null; // make sure senderThread = null; // make sure
receiverThread = null; // make sure receiverThread = null; // make sure
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment