summaryrefslogtreecommitdiff
path: root/include/Socket.h
diff options
context:
space:
mode:
authorpixel <pixel>2006-11-14 10:10:10 +0000
committerpixel <pixel>2006-11-14 10:10:10 +0000
commit3ca22b7d558b948f6bf60c5ff3cf0c1a0630c42c (patch)
tree03bb396811e73db1aa476ba865e6c93c550615e7 /include/Socket.h
parentfb4703fddb26291afcc3765a92814885ee9102c9 (diff)
Various compilation fixes, mostly side effects from the win32 backport.
Diffstat (limited to 'include/Socket.h')
-rw-r--r--include/Socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Socket.h b/include/Socket.h
index 77bfedd..4c79237 100644
--- a/include/Socket.h
+++ b/include/Socket.h
@@ -11,7 +11,7 @@ class Socket : public Handle {
public:
Socket() throw (GeneralException);
Socket(const Socket &);
- virtual ~Socket() { close(); }
+ virtual ~Socket() { if (!IsClosed()) { nclose(); tagclose(); } }
bool SetLocal(const String &, int = 0);
bool Connect(const String &, int);
bool Listen();