public void Start(Framework.Interfaces.ICore core) { if (httpServer == null) { try { httpServer = new OSMTileHttpServer(PluginSettings.Instance.TileServerPort, core); Thread thread = new Thread(new ThreadStart(httpServer.listen)); thread.IsBackground = true; thread.Start(); Active = true; } catch { httpServer = null; } } }
public void Start(Framework.Interfaces.ICore core) { if (httpServer == null) { try { httpServer = new OSMTileHttpServer(PluginSettings.Instance.TileServerPort, core); Thread thread = new Thread(new ThreadStart(httpServer.listen)); thread.IsBackground = true; thread.Start(); Active = true; } catch { httpServer = null; } } }