summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2009-11-10 11:33:21 -0800
committerPixel <pixel@nobis-crew.org>2009-11-10 11:33:21 -0800
commitf63c0788ca15beee089a3227f6df0e1f1b20a3c4 (patch)
tree2e0262108dd56e452a4307db46f27b5b6d3ade76
parentf85b3a5e5af39cb39287ecb63ecbd09d6f714b6d (diff)
Avoiding double closes, just in case.
-rw-r--r--lib/Socket.cc2
1 files changed, 1 insertions, 1 deletions
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;
}