summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/tools/bridge.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/tools/bridge.cpp b/src/mongo/tools/bridge.cpp
index e24df98dc67..d43fac3d0e5 100644
--- a/src/mongo/tools/bridge.cpp
+++ b/src/mongo/tools/bridge.cpp
@@ -105,8 +105,11 @@ public:
dest.port().call(m, response);
// nothing to reply with?
- if (response.empty())
- cleanup(0);
+ if (response.empty()) {
+ cout << "end connection " << dest.toString() << endl;
+ mp_.shutdown();
+ break;
+ }
mp_.reply(m, response, oldId);
while (exhaust) {