Skip to content

Commit

Permalink
Fix crash related to unset "devices" in config
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoscopic committed Dec 22, 2020
1 parent 240875c commit 5d5f3e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions coordinator/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,10 @@ func NewRunningDev(
devd.iosVersion = getDeviceInfo( config, uuid, "ProductVersion" )

devConf := get_device_config( config, uuid )

devd.streamWidth = devConf.Width
devd.streamHeight = devConf.Height
if devConf != nil {
devd.streamWidth = devConf.Width
devd.streamHeight = devConf.Height
}

devMapLock.Lock()
runningDevs[uuid] = &devd
Expand Down

0 comments on commit 5d5f3e7

Please sign in to comment.