1
0
Fork 0

Don't start the client geoservice if it's not required

master^2
WolverinDEV 2021-02-20 16:10:13 +01:00
parent 1774b52504
commit 3b8f47a161
2 changed files with 10 additions and 2 deletions

View File

@ -160,5 +160,7 @@ class GeoResolverIpInfo implements GeoLocationResolver {
export let geoLocationProvider: GeoLocationProvider; export let geoLocationProvider: GeoLocationProvider;
geoLocationProvider = new GeoLocationProvider(); export function initializeGeoService() {
geoLocationProvider.loadCache(); geoLocationProvider = new GeoLocationProvider();
geoLocationProvider.loadCache();
}

View File

@ -1,3 +1,5 @@
import {initializeGeoService} from "./GeoLocation";
export { ClientServiceLogger, setClientServiceLogger } from "./Logging"; export { ClientServiceLogger, setClientServiceLogger } from "./Logging";
export { ActionResult } from "./Action"; export { ActionResult } from "./Action";
@ -8,3 +10,7 @@ export * as Messages from "./Messages";
export { ClientServiceInvite, InviteLinkInfo } from "./ClientServiceInvite"; export { ClientServiceInvite, InviteLinkInfo } from "./ClientServiceInvite";
export { ClientServiceConfig, ClientServices, LocalAgent } from "./ClientService"; export { ClientServiceConfig, ClientServices, LocalAgent } from "./ClientService";
export function initializeClientServices() {
initializeGeoService();
}