fix crash when importing default latch timeout

This commit is contained in:
spiral 2021-12-04 18:32:01 -05:00
parent 0110a0b53f
commit d11e84246d
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -71,7 +71,7 @@ public class SystemConfigPatch: PatchObject
patch.PingsEnabled = o.Value<bool>("pings_enabled");
if (o.ContainsKey("latch_timeout"))
patch.LatchTimeout = o.Value<int>("latch_timeout");
patch.LatchTimeout = o.Value<int?>("latch_timeout");
if (o.ContainsKey("member_default_private"))
patch.MemberDefaultPrivate = o.Value<bool>("member_default_private");