Move NetActorOnce to NetActor.h.

GitOrigin-RevId: e439137323dda416b07e091c4218eba0a4c73961
This commit is contained in:
levlam 2018-04-19 19:00:54 +03:00
parent ece337342b
commit a09e94370b
2 changed files with 11 additions and 11 deletions

View File

@ -84,17 +84,6 @@
namespace td {
class NetActorOnce : public NetActor {
void hangup() override {
on_error(0, Status::Error(500, "Request aborted"));
stop();
}
void on_result_finish() override {
stop();
}
};
void dummyUpdate::store(TlStorerToString &s, const char *field_name) const {
s.store_class_begin(field_name, "dummyUpdate");
s.store_class_end();

View File

@ -39,4 +39,15 @@ class NetActor : public NetQueryCallback {
Td *td;
};
class NetActorOnce : public NetActor {
void hangup() override {
on_error(0, Status::Error(500, "Request aborted"));
stop();
}
void on_result_finish() override {
stop();
}
};
} // namespace td