Fix register(critical)?untilLatest being inverted
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user