()
| 704 | } |
| 705 | |
| 706 | func (nc *Conn) wsClose() { |
| 707 | nc.mu.Lock() |
| 708 | defer nc.mu.Unlock() |
| 709 | if !nc.ws { |
| 710 | return |
| 711 | } |
| 712 | nc.wsEnqueueCloseMsgLocked(wsCloseStatusNormalClosure, _EMPTY_) |
| 713 | } |
| 714 | |
| 715 | func (nc *Conn) wsEnqueueCloseMsg(needsLock bool, status int, payload string) { |
| 716 | // In some low-level unit tests it will happen... |
no test coverage detected