mirror of
https://github.com/FluuxIO/go-xmpp.git
synced 2024-11-22 02:22:00 -08:00
Clean-up
This commit is contained in:
parent
9b57809e9d
commit
2c7b03fcea
@ -120,15 +120,6 @@ func (c *Component) SetHandler(handler EventHandler) {
|
|||||||
c.Handler = handler
|
c.Handler = handler
|
||||||
}
|
}
|
||||||
|
|
||||||
// Recv abstracts receiving preparsed XMPP packets from a channel.
|
|
||||||
// Channel allow client to receive / dispatch packets in for range loop.
|
|
||||||
// TODO: Deprecate this function in favor of reading directly from the RecvChannel ?
|
|
||||||
/*
|
|
||||||
func (c *Component) Recv() <-chan Packet {
|
|
||||||
return c.RecvChannel
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Receiver Go routine receiver
|
// Receiver Go routine receiver
|
||||||
func (c *Component) recv() (err error) {
|
func (c *Component) recv() (err error) {
|
||||||
for {
|
for {
|
||||||
|
Loading…
Reference in New Issue
Block a user