DrakiaXYZ 4b8b62ae83 Utilize the release callback returned by lockFileSync to release the lock file (!239)
The error people are getting about a lock file already existing is due to `checkFileSync` returning false if the lock file is "stale".
The default "stale" timeout is 10 seconds, so if a save takes longer than this, the user will end up in a state where they can no longer save.

The documentation for `proper-lockfile` recommends using the callback returned by `lockFileSync` to remove the lock file, so I've switched to using this, and the error no longer occurs with long running save operations

Co-authored-by: DrakiaXYZ <565558+TheDgtl@users.noreply.github.com>
Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/239
Co-authored-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
Co-committed-by: DrakiaXYZ <drakiaxyz@noreply.dev.sp-tarkov.com>
2024-02-28 07:56:53 +00:00
..
2023-12-21 22:27:19 +00:00
2023-11-16 21:42:06 +00:00
2023-11-16 21:42:06 +00:00
2024-02-02 15:00:21 -05:00
2024-02-02 15:00:21 -05:00
2024-02-02 15:00:21 -05:00
2023-12-21 22:27:19 +00:00
2024-01-26 17:57:42 +00:00
2024-02-05 19:03:26 -05:00
2024-02-05 19:03:26 -05:00
2024-02-20 09:12:16 +00:00
2023-11-16 21:42:06 +00:00