File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
projects/RabbitMQ.Client/client/impl Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ private async Task ReceiveLoop()
86
86
87
87
private void ProcessFrame ( InboundFrame frame )
88
88
{
89
- bool shallReturn = true ;
89
+ bool shallReturnPayload = true ;
90
90
if ( frame . Channel == 0 )
91
91
{
92
92
if ( frame . Type == FrameType . FrameHeartbeat )
@@ -105,7 +105,7 @@ private void ProcessFrame(InboundFrame frame)
105
105
// quiescing situation, even though technically we
106
106
// should be ignoring everything except
107
107
// connection.close-ok.
108
- shallReturn = _session0 . HandleFrame ( in frame ) ;
108
+ shallReturnPayload = _session0 . HandleFrame ( in frame ) ;
109
109
}
110
110
}
111
111
else
@@ -121,11 +121,12 @@ private void ProcessFrame(InboundFrame frame)
121
121
// connection. Handle the frame. (Of course, the
122
122
// Session itself may be quiescing this particular
123
123
// channel, but that's none of our concern.)
124
- shallReturn = _sessionManager . Lookup ( frame . Channel ) . HandleFrame ( in frame ) ;
124
+ ISession session = _sessionManager . Lookup ( frame . Channel ) ;
125
+ shallReturnPayload = session . HandleFrame ( in frame ) ;
125
126
}
126
127
}
127
128
128
- if ( shallReturn )
129
+ if ( shallReturnPayload )
129
130
{
130
131
frame . ReturnPayload ( ) ;
131
132
}
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ public bool TryReadFrame(out InboundFrame frame)
250
250
251
251
public void SendHeader ( )
252
252
{
253
- #if NET6_0_OR_GREATER
253
+ #if NET
254
254
_pipeWriter . AsStream ( ) . Write ( ProtocolHeader ) ;
255
255
#else
256
256
_pipeWriter . AsStream ( ) . Write ( ProtocolHeader . ToArray ( ) , 0 , ProtocolHeader . Length ) ;
You can’t perform that action at this time.
0 commit comments