diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 12:29:47 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 12:29:47 +1200 |
commit | c78a8ed5703db32f00a0260939cdd87b011c9bcd (patch) | |
tree | 31729a83718eaec318afd2588f339d4ea3e38c41 /src/org/traccar/WindowsService.java | |
parent | fa26dd5f14a991f327c26517a645c6b4f77c4a73 (diff) | |
download | trackermap-server-c78a8ed5703db32f00a0260939cdd87b011c9bcd.tar.gz trackermap-server-c78a8ed5703db32f00a0260939cdd87b011c9bcd.tar.bz2 trackermap-server-c78a8ed5703db32f00a0260939cdd87b011c9bcd.zip |
More service improvements
Diffstat (limited to 'src/org/traccar/WindowsService.java')
-rw-r--r-- | src/org/traccar/WindowsService.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/WindowsService.java b/src/org/traccar/WindowsService.java index dccb01559..c1a5a1017 100644 --- a/src/org/traccar/WindowsService.java +++ b/src/org/traccar/WindowsService.java @@ -182,6 +182,8 @@ public abstract class WindowsService { reportStatus(Winsvc.SERVICE_START_PENDING, WinError.NO_ERROR, 3000); reportStatus(Winsvc.SERVICE_RUNNING, WinError.NO_ERROR, 0); + Thread.currentThread().setContextClassLoader(WindowsService.class.getClassLoader()); + run(); reportStatus(Winsvc.SERVICE_STOPPED, WinError.NO_ERROR, 0); |