mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* Introduce MCI cache: Art files are hashed and MCI info (per client) is cached. Term resizes invalidate the cache
* Bring in farmhash for art file hashing (and perhaps other uses soon) * Re-write of art.js display(). Better system, use MCI cache, etc. * Update package.json engines node req.
This commit is contained in:
parent
5112506e14
commit
e7ba6c406e
7 changed files with 183 additions and 10 deletions
|
@ -150,11 +150,13 @@ ClientTerminal.prototype.write = function(s, convertLineFeeds, cb) {
|
|||
|
||||
ClientTerminal.prototype.rawWrite = function(s, cb) {
|
||||
if(this.output) {
|
||||
this.output.write(s, function written(err) {
|
||||
if(_.isFunction(cb)) {
|
||||
cb(err);
|
||||
} else if(err) {
|
||||
Log.warn('Failed writing to socket: ' + err.toString());
|
||||
this.output.write(s, err => {
|
||||
if(cb) {
|
||||
return cb(err);
|
||||
}
|
||||
|
||||
if(err) {
|
||||
Log.warn( { error : err.message }, 'Failed writing to socket');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue