Fix register(critical)?untilLatest being inverted

This commit is contained in:
Admin Else
2026-03-29 21:08:48 +02:00
parent 4bfaf9b7c5
commit 420ec5611c
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -125,9 +125,9 @@ func (c *Conn) registerUntil(h any, until string, critical bool) {
return v.Interface().(error)
}
if critical {
c.RegisterCustomType(newT, reflect.ValueOf(handleFunc))
} else {
c.RegisterDirect(newT, reflect.ValueOf(handleFunc))
} else {
c.RegisterCustomType(newT, reflect.ValueOf(handleFunc))
}
}
}