mirror of
https://github.com/BlueMatthew/WechatExporter.git
synced 2026-08-29 16:40:34 +08:00
Detect cancellation when exporting messages
This commit is contained in:
@@ -516,7 +516,13 @@ int Exporter::exportSession(const Friend& user, SessionParser& sessionParser, co
|
||||
msgParser.parse(msg, session, tvs);
|
||||
exportMessage(session, tvs, messages);
|
||||
++numberOfMsgs;
|
||||
|
||||
if (m_cancelled)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// numberOfMsgs = sessionParser.parse(session, handler);
|
||||
if (numberOfMsgs > 0 && !messages.empty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user