mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-23 17:50:57 +02:00
Fix yet another bug with node IDs
* Pick appropriate slot * Log nodeId vs clientId/etc. for less confusion
This commit is contained in:
parent
714f32f695
commit
fd6bb47427
5 changed files with 22 additions and 21 deletions
|
@ -86,9 +86,9 @@ module.exports = class DownloadQueue {
|
|||
this.add(entry, true); // true=systemFile
|
||||
|
||||
// clean up after ourselves when the session ends
|
||||
const thisClientId = this.client.session.id;
|
||||
const thisUniqueId = this.client.session.uniqueId;
|
||||
Events.once(Events.getSystemEvents().ClientDisconnected, evt => {
|
||||
if(thisClientId === _.get(evt, 'client.session.id')) {
|
||||
if(thisUniqueId === _.get(evt, 'client.session.uniqueId')) {
|
||||
FileEntry.removeEntry(entry, { removePhysFile : true }, err => {
|
||||
const Log = require('./logger').log;
|
||||
if(err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue