~samwhited/xmpp

0e5ccd204a26f0cf65810ff16332a270c940df46 — Sam Whited 1 year, 7 months ago 65018da
Revert "xmpp: lock output stream when replying with errors"

This reverts commit 65018daba718d1c6fe81a1b39ed6c99a361e0f2d.
1 files changed, 0 insertions(+), 3 deletions(-)

M session.go
M session.go => session.go +0 -3
@@ 243,9 243,6 @@ func (s *Session) Serve(h Handler) error {
// If an error is returned (the original error or a different one), it has not
// been handled fully and must be handled by the caller.
func (s *Session) sendError(err error) (e error) {
	s.out.Lock()
	defer s.out.Unlock()

	switch typErr := err.(type) {
	case stream.Error:
		if _, e = typErr.WriteXML(s); e != nil {