Only call with attrs that need to be non-zero.
This commit is contained in:
parent
c33950f532
commit
cf45380866
|
|
@ -20,12 +20,11 @@ type XMPP struct {
|
||||||
|
|
||||||
func newXMPP(jid JID, stream *Stream) *XMPP {
|
func newXMPP(jid JID, stream *Stream) *XMPP {
|
||||||
x := &XMPP{
|
x := &XMPP{
|
||||||
jid,
|
JID: jid,
|
||||||
stream,
|
stream: stream,
|
||||||
make(chan interface{}),
|
in: make(chan interface{}),
|
||||||
make(chan interface{}),
|
out: make(chan interface{}),
|
||||||
0,
|
filters: make(map[FilterId]filter),
|
||||||
make(map[FilterId]filter),
|
|
||||||
}
|
}
|
||||||
go x.sender()
|
go x.sender()
|
||||||
go x.receiver()
|
go x.receiver()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue