fix(codegen): Fixes codegenning timers when they are null. (#723)
When a timer is null, the code generator will use `TimeSpan.MinValue` as the delay.
This commit is contained in:
parent
dd62e17693
commit
671cc769a6
2 changed files with 4 additions and 3 deletions
|
|
@ -57,6 +57,6 @@ namespace Server
|
|||
InternalRead(source, buffer, bufferIndex, length);
|
||||
|
||||
internal unsafe int InternalRead(FileStream source, void* buffer, int bufferIndex, int length) =>
|
||||
UnsafeNativeMethods.read(source.SafeFileHandle.DangerousGetHandle(), (byte*)buffer + bufferIndex, length);
|
||||
UnsafeNativeMethods.read(source.SafeFileHandle!.DangerousGetHandle(), (byte*)buffer + bufferIndex, length);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue