diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-24 10:45:26 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-24 10:45:26 -0800 |
commit | 98993ee219b6c0cb31f2f3b1608d378b2e028535 (patch) | |
tree | 77a6e8366c27b8b3851e52b6ab81ff62920b970c /src/org/traccar/database/MailManager.java | |
parent | a129cfd3159c02b4f3996dbdfb5299ac95a6720c (diff) | |
download | trackermap-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.tar.gz trackermap-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.tar.bz2 trackermap-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.zip |
Refactor geolocation
Diffstat (limited to 'src/org/traccar/database/MailManager.java')
-rw-r--r-- | src/org/traccar/database/MailManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/database/MailManager.java b/src/org/traccar/database/MailManager.java index e64aa638a..8a2f002cd 100644 --- a/src/org/traccar/database/MailManager.java +++ b/src/org/traccar/database/MailManager.java @@ -19,6 +19,7 @@ package org.traccar.database; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.traccar.Context; +import org.traccar.Main; import org.traccar.model.User; import org.traccar.notification.PropertiesProvider; @@ -134,7 +135,7 @@ public final class MailManager { } try (Transport transport = session.getTransport()) { - Context.getStatisticsManager().registerMail(); + Main.getInjector().getInstance(StatisticsManager.class).registerMail(); transport.connect( properties.getProperty("mail.smtp.host"), properties.getProperty("mail.smtp.username"), |