From f63c0788ca15beee089a3227f6df0e1f1b20a3c4 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 10 Nov 2009 11:33:21 -0800 Subject: Avoiding double closes, just in case. --- lib/Socket.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Socket.cc b/lib/Socket.cc index 41db767..a78178b 100644 --- a/lib/Socket.cc +++ b/lib/Socket.cc @@ -61,7 +61,7 @@ Socket::Socket() throw (GeneralException) : Handle(socket(AF_INET, SOCK_STREAM, } } -Socket::Socket(const Socket & s) : Handle(s), connected(s.connected), listening(s.listening), writeclosed(s.writeclosed), readclosed(s.readclosed), connecting(s.connecting), pair(s.pair) { +Socket::Socket(const Socket & s) : Handle(s), connected(s.connected), listening(s.listening), writeclosed(s.writeclosed), readclosed(s.readclosed), connecting(s.connecting), pair(-1) { // cerr << "Constructing a socket by copy...\n"; // cerr << "Socket(const Socket &): connected = " << connected << "; readclosed = " << readclosed << "; writeclosed = " << writeclosed << endl; } -- cgit v1.2.3