From 8f70b382067c932232dbf3966d8859266986004d Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 24 Oct 2016 17:40:50 +0200 Subject: Try to disconnect when destroying device Signed-off-by: Szczepan Zalega --- include/device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/device.h') diff --git a/include/device.h b/include/device.h index 34b7a5b..3f18921 100644 --- a/include/device.h +++ b/include/device.h @@ -21,6 +21,7 @@ class Device { public: Device(); + virtual ~Device(){disconnect();} // lack of device is not actually an error, // so it doesn't throw -- cgit v1.2.1