mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
only increment the metadata line index if you can parse the line
This commit is contained in:
parent
1c37ec7aee
commit
0a0c64d240
@ -99,9 +99,9 @@ Meta.createLineHandler = function (ref, errorHandler) {
|
||||
}
|
||||
|
||||
if (Array.isArray(line)) {
|
||||
ref.index++;
|
||||
try {
|
||||
handleCommand(ref.meta, line);
|
||||
ref.index++;
|
||||
} catch (err2) {
|
||||
errorHandler("METADATA_COMMAND_ERR", {
|
||||
error: err2.stack,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user