256257258259260261262263
try { _db.killCursors(_host, asList(_cursorId)); _cursorId = 0; } catch (MongoException e) { _db.addDeadCursor(new DeadCursor(_cursorId, _host)); } }
295296297298299300301302
} @Override protected void finalize() throws Throwable { if (cursorId != 0) { db.addDeadCursor(new DeadCursor(cursorId, host)); } }