Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit e49448b3 authored by Deucе's avatar Deucе 👌🏾

Add a close method.

parent 0e692cf8
......@@ -773,3 +773,16 @@ RecordFile.prototype.WriteField = function(val, fieldtype, def)
'use strict';
return this.writeField(val, fieldtype, def);
};
RecordFile.prototype.close = function()
{
while (this.locks.length > 0) {
this.unlock(this.locks[0]);
}
this.file.close();
};
RecordFile.prototype.Close = function()
{
'use strict';
return this.close();
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment