fix dtor of PHY when stack init fails

This commit is contained in:
Andre Puschmann 2019-06-20 12:18:38 +02:00
parent b6d7fd5def
commit 8333a9be57
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class phy : public ue_lte_phy_base, public thread
{
public:
phy() : workers_pool(MAX_WORKERS), common(MAX_WORKERS), thread("PHY"){};
~phy() override = default;
~phy() { stop(); }
// Init defined in base class
int init(const phy_args_t& args_, srslte::logger* logger_) final;

View File

@ -108,8 +108,8 @@ public:
private:
// UE consists of a radio, a PHY and a stack element
std::unique_ptr<ue_radio_base> radio;
std::unique_ptr<ue_phy_base> phy;
std::unique_ptr<ue_radio_base> radio;
std::unique_ptr<ue_stack_base> stack;
std::unique_ptr<gw> gw_inst;