aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/WindowsService.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/WindowsService.java')
-rw-r--r--src/org/traccar/WindowsService.java2
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);