amark/mongous — pull request #25 by acsaga (2012-02-28 06:40:49+00:00)
Title: refactor con.r function

I found when connecting to mongodb, if som < res.length, the connection will fail.
I'm not sure why this happen, but it did happen on my computer. (It seems sometimes mongodb returns useless data in response?)

so I combine the logic about (som < res.length) and (som == res.length) to fix that case.