()
| 684 | } |
| 685 | |
| 686 | func (c *ForwardCtx) NoMoreConnections() error { |
| 687 | c.stopped = true |
| 688 | close(c.connectionChannel) |
| 689 | return c.writePacket( |
| 690 | &Packet{ |
| 691 | Type: PACKET_NO_MORE_CONNECTIONS, |
| 692 | }, |
| 693 | ) |
| 694 | } |
| 695 | |
| 696 | func (c *ForwardCtx) WaitFinish() { |
| 697 | c.waitGroup.Wait() |
no test coverage detected