From 333d83324710bbdef6f6feea38a9dadc3c01b959 Mon Sep 17 00:00:00 2001 From: bju Date: Tue, 24 Jan 2012 23:06:34 +0100 Subject: Close() has used socket (method pointer) and not sock (variable) to check if close() should be called. --- vdr-vdrmanager/sock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vdr-vdrmanager/sock.cpp') 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; } -- cgit v1.2.3