File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -427,8 +427,12 @@ func (p *Protocol) stateLoop(ch <-chan protocolStateTransition) {
427427
428428 // Mark protocol as ready to send/receive based on role and agency of the new state
429429 switch p .config .StateMap [currentState ].Agency {
430+ case AgencyNone :
431+ return
430432 case AgencyClient :
431433 switch p .config .Role {
434+ case ProtocolRoleNone :
435+ return
432436 case ProtocolRoleClient :
433437 select {
434438 case p .sendReadyChan <- true :
@@ -442,6 +446,8 @@ func (p *Protocol) stateLoop(ch <-chan protocolStateTransition) {
442446 }
443447 case AgencyServer :
444448 switch p .config .Role {
449+ case ProtocolRoleNone :
450+ return
445451 case ProtocolRoleServer :
446452 select {
447453 case p .sendReadyChan <- true :
You can’t perform that action at this time.
0 commit comments