diff options
author | Sascha Hlusiak <saschahlusiak@arcor.de> | 2007-10-03 00:33:09 +0200 |
---|---|---|
committer | Sascha Hlusiak <saschahlusiak@arcor.de> | 2007-10-03 00:33:09 +0200 |
commit | 65009ab568500fac9980239a752d346a0d9b5ff1 (patch) | |
tree | 1d9ff4ff220a0452938d8ab1374d78c7b2b3c203 /src | |
parent | 13c850fe77b0a9a8a719bedfa1439e96972a730b (diff) |
Added little check if device is enabled before disabling it
Diffstat (limited to 'src')
-rw-r--r-- | src/jstk.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -353,6 +353,8 @@ jstkDeviceControlProc(DeviceIntPtr pJstk, case DEVICE_OFF: case DEVICE_CLOSE: + if (!pJstk->public.on) + break; DBG(1, ErrorF("jstkDeviceControlProc what=%s\n", (what == DEVICE_CLOSE) ? "CLOSE" : "OFF")); @@ -612,7 +614,6 @@ jstkDriverPlug(pointer module, * jstkDriverUnplug -- * * Called when the driver is unloaded - * NOTICE: When does this actually happen? What needs to be cleaned up? * *************************************************************************** */ |