~samwhited/xmpp

f444285c05d73e6d9e23503b77d8df422a94b494 — Sam Whited 1 year, 7 months ago 1e5ebbe
xmpp: don't return io.EOF from Serve
1 files changed, 6 insertions(+), 1 deletions(-)

M session.go
M session.go => session.go +6 -1
@@ 264,7 264,12 @@ func (s *Session) Serve(h Handler) (err error) {
		default:
		}
		err := handleInputStream(s, h)
		if err != nil {
		switch err {
		case nil:
			// No error and no sentinal error telling us to shut down; try again!
		case io.EOF:
			return nil
		default:
			return s.sendError(err)
		}
	}