aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-05-23 15:12:02 -0400
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-05-23 15:13:27 -0400
commit5c52f377bdd6f4cf0d16751d19ddada0c5bbceaa (patch)
tree1f50a8dc6a2ff581677e656cdda415d2c936fd27 /src
parent56605efca630d693765ff2b10c253d8fbf5b0955 (diff)
improve ordering of serverside send checks
Diffstat (limited to 'src')
-rw-r--r--src/csharp/Grpc.Core/Internal/AsyncCallServer.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/csharp/Grpc.Core/Internal/AsyncCallServer.cs b/src/csharp/Grpc.Core/Internal/AsyncCallServer.cs
index a4f6e4d1b0..109c207c75 100644
--- a/src/csharp/Grpc.Core/Internal/AsyncCallServer.cs
+++ b/src/csharp/Grpc.Core/Internal/AsyncCallServer.cs
@@ -201,11 +201,11 @@ namespace Grpc.Core.Internal
protected override Task CheckSendAllowedOrEarlyResult()
{
CheckNotCancelled();
- GrpcPreconditions.CheckState(!disposed);
GrpcPreconditions.CheckState(!halfcloseRequested, "Response stream has already been completed.");
GrpcPreconditions.CheckState(!finished, "Already finished.");
GrpcPreconditions.CheckState(streamingWriteTcs == null, "Only one write can be pending at a time");
+ GrpcPreconditions.CheckState(!disposed);
return null;
}