Skip to content
Snippets Groups Projects
Commit 1629030d authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Delete mat*.dat before renaming mail*.dat to it.

Fixes infinite mail loop.
parent 129fa88a
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -1857,6 +1857,7 @@ function mail_check(messenger)
// TODO: Not sure what happens on windows if someone else has the file open...
// We likely need a file mutex here.
file_delete(f.name)
file_rename(fn, f.name);
if (!f.open('r'))
throw new Error('Unable to open '+f.name);
......@@ -1911,6 +1912,7 @@ function mail_check(messenger)
lln(l);
}
}
f.close();
con_check();
more();
if (messenger) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment