Projects STRLCPY prox5 Commits 8b7db078
🤬
  • ■ ■ ■ ■ ■
    conductor.go
    skipped 48 lines
    49 49   
    50 50  func (p5 *Swamp) startDaemons() {
    51 51   go p5.jobSpawner()
     52 + atomic.StoreUint32(&p5.Status, uint32(StateRunning))
    52 53  }
    53 54   
    54 55  // Resume will resume pause proxy pool operations, attempting to resume a running Swamp is returns an error.
    skipped 9 lines
  • ■ ■ ■ ■
    getters.go
    skipped 74 lines
    75 75   
    76 76  // IsRunning returns true if our background goroutines defined in daemons.go are currently operational
    77 77  func (p5 *Swamp) IsRunning() bool {
    78  - return atomic.LoadInt32(&p5.runningdaemons) == 2
     78 + return atomic.LoadUint32(&p5.Status) == 0
    79 79  }
    80 80   
    81 81  // GetRecyclingStatus retrieves the current recycling status, see EnableRecycling.
    skipped 46 lines
Please wait...
Page is in error, reload to recover