func (transport *Polling) Shutdown() {
	if !transport.running {
		return
	}

	transport.running = false

	transport.Send(packet.NewNOOP())

	transport.receiving.Wait()
	transport.buffer.Close()

	close(transport.received)
}
// Shutdown stops the transport from receiving or sending packets
Shutdown stops the transport from receiving or sending packets
// Shutdown stops the transport from receiving or sending packets
func (transport *Polling) Shutdown() {
	if !transport.running {
		return
	}
	transport.running = false
	transport.Send(packet.NewNOOP())
	transport.receiving.Wait()
	transport.buffer.Close()
	close(transport.received)
}
func ( transport * Polling ) Shutdown ( ) { if ! transport . running { return } transport . running = false transport . Send ( packet . NewNOOP ( ) ) transport . receiving . Wait ( ) transport . buffer . Close ( ) close ( transport . received ) }
Shutdown stops the transport from receiving or sending packets
Shutdown stops the transport from receiving or sending packets