diff options
author | Andreas Hagmann <andreas@macbookpro.home> | 2013-11-17 02:02:21 +0100 |
---|---|---|
committer | Andreas Hagmann <andreas@macbookpro.home> | 2013-11-17 02:02:21 +0100 |
commit | 302f9aecc1c1cd9b7b634efe50d7bc3f2576ecbc (patch) | |
tree | f18f622cc9f6d533b7b40594337aaaac8aa1b1bc /gamepad.c | |
parent | 00b08b4737176cf653cd70967d06149b386d9667 (diff) | |
download | vdr-plugin-gamepad-302f9aecc1c1cd9b7b634efe50d7bc3f2576ecbc.tar.gz vdr-plugin-gamepad-302f9aecc1c1cd9b7b634efe50d7bc3f2576ecbc.tar.bz2 |
fix SVDRP commandsv0.0.1
Diffstat (limited to 'gamepad.c')
-rwxr-xr-x | gamepad.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -44,7 +44,10 @@ cPluginGamepad::cPluginGamepad(void) : processKeysThread(NULL) cPluginGamepad::~cPluginGamepad() { - // Clean up after yourself! + if (processKeysThread != NULL) + { + delete processKeysThread; + } } const char *cPluginGamepad::CommandLineHelp(void) @@ -78,7 +81,6 @@ void cPluginGamepad::Stop(void) { if (processKeysThread) { processKeysThread->Cancel(10); - processKeysThread = NULL; } } @@ -147,6 +149,7 @@ cString cPluginGamepad::SVDRPCommand(const char *Command, const char *Option, in { if (strcasecmp(Command, "ENABLE") == 0) { + Start(); ReplyCode = 900; return "Enabled"; } |