Ignore:
Timestamp:
Sep 20, 2018 3:20:39 AM (20 months ago)
Author:
meeh <meeh@…>
Branches:
master
Children:
85ebb2f
Parents:
3c0a8cf
Message:

Mac OS X Launcher: more cleanup and some bugfixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • launchers/macosx/I2PLauncher/routermgmt/RouterProcessStatus.swift

    r3c0a8cf re8decff5  
    2727 
    2828  @objc func getRouterIsRunning() -> Bool {
    29     if (RouterProcessStatus.isRouterRunning) {
    30       return false;
    31     } else {
    32       let running: Bool = RouterProcessStatus.isRouterRunning
    33       return running
    34     }
     29    return RouterProcessStatus.isRouterRunning
    3530  }
    3631 
    3732  @objc func getJavaHome() -> String {
    3833    return RouterProcessStatus.knownJavaBinPath!
    39   }
    40  
    41   @objc func setJavaHome(_ home: String) {
    42     NSLog("Setting known java to %s", home)
    43     RouterProcessStatus.knownJavaBinPath = home
    4434  }
    4535}
     
    4939  static var isRouterChildProcess : Bool = false
    5040  static var routerVersion : String? = Optional.none
    51   static var routerUptime : String? = Optional.none
     41  static var routerUptime : String? = Optional.none{
     42    //Called before the change
     43    willSet(newValue){
     44      print("RouterProcessStatus.routerUptime will change from ", (self.routerUptime ?? "nil"), " to "+(newValue ?? "nil"))
     45    }
     46   
     47    //Called after the change
     48    didSet{
     49      print("RouterProcessStatus.routerUptime did change to "+self.routerUptime!)
     50    }
     51  }
    5252  static var routerStartedAt : Date? = Optional.none
    5353  static var knownJavaBinPath : String? = Optional.none
Note: See TracChangeset for help on using the changeset viewer.