aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/GlobalChannelFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/GlobalChannelFactory.java')
-rw-r--r--src/org/traccar/GlobalChannelFactory.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/org/traccar/GlobalChannelFactory.java b/src/org/traccar/GlobalChannelFactory.java
index 0c4d11275..a93703286 100644
--- a/src/org/traccar/GlobalChannelFactory.java
+++ b/src/org/traccar/GlobalChannelFactory.java
@@ -28,6 +28,13 @@ public class GlobalChannelFactory {
private GlobalChannelFactory() {
}
+
+ public static void release() {
+ if (instance != null) {
+ instance.releaseExternalResources();
+ }
+ instance = null;
+ }
public static ChannelFactory getFactory() {
if(instance == null) {