Need a timeout of 100ms for the message to show

pull/365/head
Tim Robinson 2016-09-29 20:55:02 +00:00
rodzic 820ff42781
commit 6cd0202b41
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -354,9 +354,9 @@ function plugin(options, imports, register) {
console.log("Removing ", vfs.id, " for user ", vfs.uid, " project ", vfs.pid, " from the vfs connection cache");
// Remove next tick so client has time to recieve final "You've been removed" PubSub message.
process.nextTick(function() {
setTimeout(function() {
cache.remove(vfs.id);
});
}, 100);
}
register(null, {