Skip to content

Commit dcd405b

Browse files
bgraingervaintroub
andauthored
Update src/MySqlConnector/Protocol/Serialization/AuthGSSAPI.cs
Co-Authored-By: vaintroub <[email protected]>
1 parent c8566b7 commit dcd405b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MySqlConnector/Protocol/Serialization/AuthGSSAPI.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public override async Task<int> ReadAsync(byte[] buffer, int offset, int count,
118118
return bytesRead;
119119
}
120120

121-
public override int Read(byte[] buffer, int offset, int count) => ReadAsync(buffer, offset, count, m_cancellationToken).Result;
121+
public override int Read(byte[] buffer, int offset, int count) => ReadAsync(buffer, offset, count, m_cancellationToken).GetAwaiter().GetResult();
122122

123123
public override async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
124124
{

0 commit comments

Comments
 (0)