diff options
Diffstat (limited to 'src/LashDriver.h')
-rw-r--r-- | src/LashDriver.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LashDriver.h b/src/LashDriver.h index 67e6dbb..0121509 100644 --- a/src/LashDriver.h +++ b/src/LashDriver.h @@ -33,7 +33,8 @@ public: void attach(bool launch_daemon); void detach(); - bool is_attached() const { return _server_interface->enabled(); } + bool is_attached() const + { return _server_interface && _server_interface->enabled(); } bool connect(boost::shared_ptr<PatchagePort>, boost::shared_ptr<PatchagePort>) { return false; } |