|
|
@@ -174,7 +174,10 @@ function getMails(receiverUuid,mailType)
|
|
|
-- break
|
|
|
-- end
|
|
|
|
|
|
- local res, err = pcall(LuaMongo.next, mail)
|
|
|
+ local res, err = pcall(function ()
|
|
|
+ return LuaMongo.next(mail)
|
|
|
+ end)
|
|
|
+
|
|
|
if not res then
|
|
|
Log.write(Log.LOGID_DEBUG, "MailManager.getMails err = ".. err)
|
|
|
break
|