Browse Source

fixed a bug that TCPServer() failed to accept connections except the first one.
(regression of r1292)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1523 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 15 years ago
parent
commit
7153686d1c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/bin/auth/main.cc

+ 1 - 2
src/bin/auth/main.cc

@@ -227,11 +227,10 @@ public:
             assert(new_client == listening_);
             new_client->start();
             listening_ = new TCPClient(io_service_);
-            acceptor_.async_accept(new_client->getSocket(),
+            acceptor_.async_accept(listening_->getSocket(),
                                    boost::bind(&TCPServer::handleAccept,
                                                this, listening_,
                                                placeholders::error));
-            listening_ = new_client;
         } else {
             delete new_client;
         }