Summary: only return `ok' if it's an async, otherwise return the value of recv_
Reviewed By: cvarenhorst
Test Plan: my server works now
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665344
13f79535-47bb-0310-9956-
ffa450edef68
}
f_service_ << ")," << endl;
- if (!(*f_iter)->is_async()) {
- f_service_ << indent();
- if (!(*f_iter)->get_returntype()->is_void()) {
- f_service_ << "";
- }
- f_service_ <<
- "recv_" << funname << "(This)," << endl;
+ if ((*f_iter)->is_async()) {
+ f_service_ << indent() << "ok." << endl;
+ } else {
+ f_service_ << indent() << "recv_" << funname << "(This)." << endl;
}
- indent(f_service_) << "ok." << endl;
indent_down();
f_service_ << endl;