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:
Kamron Batman 2021-08-23 20:44:02 -07:00 committed by GitHub
parent dd62e17693
commit 671cc769a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -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);
}
}