bugfix when creating subscription for non-existing method

This commit is contained in:
Bas van Kervel 2015-11-27 09:56:51 +01:00 committed by Péter Szilágyi
parent b29774c4f2
commit ff6b89b5d0

View file

@ -456,7 +456,7 @@ func (s *Server) readRequest(codec ServerCodec) ([]*serverRequest, bool, RPCErro
}
}
} else {
requests[i].err = &methodNotFoundError{subscribeMethod, r.method}
requests[i] = &serverRequest{id: r.id, err: &methodNotFoundError{subscribeMethod, r.method}}
}
continue
}