Issue #2009: Fix NullPointerException in SocketServer start up.
Change-Id: I07683ba74410234d162e058df0bb3ff6e00ee59e Former-commit-id: b2b6220d5b5ef2235edb57fe2ab2ce0cb234ee25
This commit is contained in:
parent
99eff65daa
commit
f4b6c5929c
1 changed files with 7 additions and 3 deletions
|
@ -40,7 +40,8 @@ import java.util.regex.Pattern;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* ??? ?? ???? bphillip Initial creation
|
||||
* Jul 15, 2013 #2099 dgilling Code cleanup.
|
||||
* Jul 15, 2013 #2009 dgilling Code cleanup.
|
||||
* Jul 23, 2013 #2009 dgilling Fix NullPointerException on start up.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -146,8 +147,11 @@ public class SocketSrv {
|
|||
}
|
||||
|
||||
public void run() throws IOException {
|
||||
Runnable rsyncJob = new RsyncThread(serverProps);
|
||||
rsyncThread.scheduleWithFixedDelay(rsyncJob, 1, 1, TimeUnit.SECONDS);
|
||||
if (rsyncThread != null) {
|
||||
Runnable rsyncJob = new RsyncThread(serverProps);
|
||||
rsyncThread
|
||||
.scheduleWithFixedDelay(rsyncJob, 1, 1, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
ServerSocket socket = new ServerSocket(serverPort);
|
||||
while (!mhsRequestHandler.isShutdown()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue