summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}