diff options
author | bju <bju@maxi.fritz.box> | 2012-01-24 23:06:34 +0100 |
---|---|---|
committer | bju <bju@maxi.fritz.box> | 2012-01-24 23:06:34 +0100 |
commit | 333d83324710bbdef6f6feea38a9dadc3c01b959 (patch) | |
tree | 669272e6c60228f1f8fec2e5797eb4756040b728 | |
parent | 898b65aec67db883f23241dfd257ded57954fe59 (diff) | |
download | vdr-manager-333d83324710bbdef6f6feea38a9dadc3c01b959.tar.gz vdr-manager-333d83324710bbdef6f6feea38a9dadc3c01b959.tar.bz2 |
Close() has used socket (method pointer) and not sock (variable) to
check if close() should be called.
-rw-r--r-- | vdr-vdrmanager/sock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vdr-vdrmanager/sock.cpp b/vdr-vdrmanager/sock.cpp index 0bda8da..be8868b 100644 --- a/vdr-vdrmanager/sock.cpp +++ b/vdr-vdrmanager/sock.cpp @@ -20,7 +20,7 @@ cVdrmanagerSocket::~cVdrmanagerSocket() { } void cVdrmanagerSocket::Close() { - if (socket >= 0) { + if (sock >= 0) { close(sock); sock = -1; } |