Skip to content
Permalink
Browse files

db, feat: return null when connection is closed.

  • Loading branch information...
xicilion committed Sep 28, 2018
1 parent ded7be3 commit e810e2062bf8f474a5e2ed74300d23ada3420a73
Showing with 1 addition and 1 deletion.
  1. +1 −1 fibjs/src/db/mongo/MongoDB.cpp
@@ -312,7 +312,7 @@ result_t MongoDB::_named_getter(exlib::string property,
obj_ptr<MongoCollection_base>& retVal)
{
if (m_closed)
return CALL_E_INVALID_CALL;
return CALL_RETURN_NULL;

return getCollection(property, retVal);
}

0 comments on commit e810e20

Please sign in to comment.
You can’t perform that action at this time.