summaryrefslogtreecommitdiff
path: root/client/dbclientcursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/dbclientcursor.cpp')
-rw-r--r--client/dbclientcursor.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/client/dbclientcursor.cpp b/client/dbclientcursor.cpp
index 9e7e8a6813e..9da45e5c32d 100644
--- a/client/dbclientcursor.cpp
+++ b/client/dbclientcursor.cpp
@@ -138,9 +138,10 @@ namespace mongo {
assert( !haveLimit );
auto_ptr<Message> response(new Message());
assert( _client );
- _client->recv(*response);
- b.m = response;
- dataReceived();
+ if ( _client->recv(*response) ) {
+ b.m = response;
+ dataReceived();
+ }
}
void DBClientCursor::dataReceived( bool& retry, string& host ) {