Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Minor.
  • Loading branch information
lanwin committed May 14, 2010
1 parent 54bd94b commit 6f2907b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions source/MongoDB/Cursor_1.cs
Expand Up @@ -221,11 +221,6 @@ public Cursor(ISerializationFactory serializationFactory, Connection connection,
if(_reply == null)
throw new InvalidOperationException("Expecting reply but get null");

//if(_limit < 0)
//_limit = _limit * -1;

Id = _reply.CursorId;

foreach(var document in _reply.Documents)
yield return document;
}
Expand Down Expand Up @@ -329,7 +324,11 @@ private void KillCursor(long cursorId)

try
{
return _connection.SendTwoWayMessage<TReply>(message, readerSettings);
var reply = _connection.SendTwoWayMessage<TReply>(message, readerSettings);

Id = reply.CursorId;

return reply;
}
catch(IOException exception)
{
Expand Down

0 comments on commit 6f2907b

Please sign in to comment.