diff options
Diffstat (limited to 'xmpp/encoder_decoder.go')
-rw-r--r-- | xmpp/encoder_decoder.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xmpp/encoder_decoder.go b/xmpp/encoder_decoder.go index d7951b3..b0ea77b 100644 --- a/xmpp/encoder_decoder.go +++ b/xmpp/encoder_decoder.go @@ -59,8 +59,14 @@ func (ed *encoderDecoder) run() { default: t, err := ed.rx.Token() if t != nil && err == nil { - c := xml.CopyToken(t) - ed.session.rx <- c + switch t.(type) { + case xml.ProcInst: + case xml.Directive: + case xml.Comment: + default: + c := xml.CopyToken(t) + ed.session.rx <- c + } } if err != nil { if errors.Is(err, io.EOF) { |