Skip to content

Commit 5cf050a

Browse files
committed
ref: removes connection closes planned for a separate PR
1 parent 2312bfa commit 5cf050a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

aspsm.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ func (c *Conn) initiateASPSM() error {
1717
}
1818
func (c *Conn) handleAspUp(aspUp *messages.AspUp) error {
1919
if c.State() != StateAspDown {
20-
defer c.Close() // Provided to handle bugs from peer STPs
2120
return NewErrUnexpectedMessage(aspUp)
2221

2322
}
@@ -49,7 +48,6 @@ func (c *Conn) handleAspUpAck(aspUpAck *messages.AspUpAck) error {
4948
}
5049

5150
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.
5351
switch c.State() {
5452
case StateAspInactive, StateAspActive:
5553
return NewErrUnexpectedMessage(aspDown)

0 commit comments

Comments
 (0)