mirror of https://github.com/PentHertz/srsLTE.git
fix dtor of PHY when stack init fails
This commit is contained in:
parent
b6d7fd5def
commit
8333a9be57
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue