source: launchers/macosx/I2PLauncher/routermgmt/RouterServices/I2PRouterService.swift @ 7cb0c9b

Last change on this file since 7cb0c9b was 7cb0c9b, checked in by meeh <meeh@…>, 14 months ago

Mac OSX Launcher: Router management/healthcheck code updates.

  • Property mode set to 100644
File size: 492 bytes
Line 
1//
2//  I2PRouterService.swift
3//  I2PLauncher
4//
5//  Created by Mikal Villa on 03/04/2019.
6//  Copyright © 2019 The I2P Project. All rights reserved.
7//
8
9import Foundation
10
11class I2PRouterService : Service {
12 
13  override func updateStatus(callback: @escaping (BaseService) -> Void) {
14    //guard let strongSelf = self else { return }
15    defer { callback(self) }
16    DispatchQueue.main.async {
17      self.status = ServiceStatus(rawValue: 0)!
18      self.message = "Dead"
19    }
20   
21  }
22 
23}
Note: See TracBrowser for help on using the repository browser.