bugfix when creating subscription for non-existing method

This commit is contained in:
Bas van Kervel 2015-11-27 09:56:51 +01:00
parent b362afcf93
commit cdb75624fe

View file

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