mirror of
https://github.com/cryptonote-social/csminer.git
synced 2024-09-11 05:35:23 +03:00
document potential cause of missed dispatcher events w/ TODO to fix
This commit is contained in:
parent
a6d5de368c
commit
7fc52f3e2d
6
miner.go
6
miner.go
@ -456,12 +456,14 @@ func prettyInt(i int64) string {
|
||||
|
||||
func monitorScreenSaver(ch chan ScreenState) {
|
||||
for state := range ch {
|
||||
// TODO: kickJobDispatcher will fail if the stratum client is inactive, which
|
||||
// will potentially cause us to miss handling some events.
|
||||
switch state {
|
||||
case SCREEN_IDLE:
|
||||
crylog.Info("Screen off")
|
||||
crylog.Info("Screen idle")
|
||||
kickJobDispatcher(&SCREEN_IDLE_POKE)
|
||||
case SCREEN_ACTIVE:
|
||||
crylog.Info("Screen on")
|
||||
crylog.Info("Screen active")
|
||||
kickJobDispatcher(&SCREEN_ON_POKE)
|
||||
case BATTERY_POWER:
|
||||
crylog.Info("Battery power")
|
||||
|
Loading…
Reference in New Issue
Block a user