We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2312bfa commit 5cf050aCopy full SHA for 5cf050a
1 file changed
aspsm.go
@@ -17,7 +17,6 @@ func (c *Conn) initiateASPSM() error {
17
}
18
func (c *Conn) handleAspUp(aspUp *messages.AspUp) error {
19
if c.State() != StateAspDown {
20
- defer c.Close() // Provided to handle bugs from peer STPs
21
return NewErrUnexpectedMessage(aspUp)
22
23
@@ -49,7 +48,6 @@ func (c *Conn) handleAspUpAck(aspUpAck *messages.AspUpAck) error {
49
48
50
51
func (c *Conn) handleAspDown(aspDown *messages.AspDown) error {
52
- c.Close() // Closing the connection to close the dataChan, to avoid the Read function keeping blocked on the channel.
53
switch c.State() {
54
case StateAspInactive, StateAspActive:
55
return NewErrUnexpectedMessage(aspDown)
0 commit comments