Adds a check to the destructors of OSDP::ControlPanel and OSDP::Peripheral to see if the context has been set during the object's lifetime. This decides whether a teardown should happen or not. An uninitialized object would otherwise fail when being destroyed.
Fixes #129.
Adds a check to the destructors of OSDP::ControlPanel and OSDP::Peripheral to see if the context has been set during the object's lifetime. This decides whether a teardown should happen or not. An uninitialized object would otherwise fail when being destroyed.