Fix nil pool for renamed/removed ids
Would crash on connect otherwise.
This commit is contained in:
parent
414e876ace
commit
489229b1eb
|
@ -270,6 +270,11 @@ public class ConnectionService: Codable {
|
||||||
providerProfile.presetId = providerProfile.infrastructure.defaults.preset
|
providerProfile.presetId = providerProfile.infrastructure.defaults.preset
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fix renamed pool, fall back to default
|
||||||
|
if providerProfile.pool == nil {
|
||||||
|
providerProfile.poolId = providerProfile.infrastructure.defaults.pool
|
||||||
|
}
|
||||||
|
|
||||||
profile = providerProfile
|
profile = providerProfile
|
||||||
|
|
||||||
case .host:
|
case .host:
|
||||||
|
|
Loading…
Reference in New Issue