mirror of https://github.com/jetkvm/kvm.git
init display before network initialization
This commit is contained in:
parent
abb8c4f0b5
commit
db64c649d4
|
|
@ -175,7 +175,7 @@ func requestDisplayUpdate(shouldWakeDisplay bool, reason string) {
|
||||||
wakeDisplay(false, reason)
|
wakeDisplay(false, reason)
|
||||||
}
|
}
|
||||||
displayLogger.Debug().Msg("display updating")
|
displayLogger.Debug().Msg("display updating")
|
||||||
//TODO: only run once regardless how many pending updates
|
// TODO: only run once regardless how many pending updates
|
||||||
updateDisplay()
|
updateDisplay()
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
@ -184,7 +184,6 @@ func waitCtrlAndRequestDisplayUpdate(shouldWakeDisplay bool, reason string) {
|
||||||
waitDisplayUpdate.Lock()
|
waitDisplayUpdate.Lock()
|
||||||
defer waitDisplayUpdate.Unlock()
|
defer waitDisplayUpdate.Unlock()
|
||||||
|
|
||||||
// nativeInstance.WaitCtrlClientConnected()
|
|
||||||
requestDisplayUpdate(shouldWakeDisplay, reason)
|
requestDisplayUpdate(shouldWakeDisplay, reason)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
6
main.go
6
main.go
|
|
@ -35,6 +35,9 @@ func Main() {
|
||||||
|
|
||||||
initNative(systemVersionLocal, appVersionLocal)
|
initNative(systemVersionLocal, appVersionLocal)
|
||||||
|
|
||||||
|
// initialize display
|
||||||
|
initDisplay()
|
||||||
|
|
||||||
http.DefaultClient.Timeout = 1 * time.Minute
|
http.DefaultClient.Timeout = 1 * time.Minute
|
||||||
|
|
||||||
err = rootcerts.UpdateDefaultTransport()
|
err = rootcerts.UpdateDefaultTransport()
|
||||||
|
|
@ -74,9 +77,6 @@ func Main() {
|
||||||
}
|
}
|
||||||
initJiggler()
|
initJiggler()
|
||||||
|
|
||||||
// initialize display
|
|
||||||
initDisplay()
|
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
time.Sleep(15 * time.Minute)
|
time.Sleep(15 * time.Minute)
|
||||||
for {
|
for {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue