mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix tests
This commit is contained in:
parent
1f3a5110cc
commit
35b69e0f5e
@ -707,7 +707,7 @@ define(function(require, exports, module) {
|
||||
status: "pending",
|
||||
className: "projectRoot",
|
||||
isEditable: false,
|
||||
map: {}
|
||||
map: Object.create(null)
|
||||
};
|
||||
var root = {};
|
||||
root.map = Object.create(null);
|
||||
|
||||
@ -209,6 +209,7 @@ define(function(require, exports, module) {
|
||||
}
|
||||
|
||||
function reconnect(callback) {
|
||||
if (!connection) return;
|
||||
connection.socket.setSocket(null);
|
||||
|
||||
vfsEndpoint.get(protocolVersion, function(err, urls) {
|
||||
@ -336,6 +337,11 @@ define(function(require, exports, module) {
|
||||
plugin.on("unload", function(){
|
||||
loaded = false;
|
||||
|
||||
if (consumer)
|
||||
consumer.disconnect();
|
||||
if (connection)
|
||||
connection.disconnect();
|
||||
|
||||
id = null;
|
||||
buffer = [];
|
||||
region = null;
|
||||
@ -346,6 +352,7 @@ define(function(require, exports, module) {
|
||||
serviceUrl = null;
|
||||
eioOptions = null;
|
||||
consumer = null;
|
||||
connection = null;
|
||||
vfs = null;
|
||||
showErrorTimer = null;
|
||||
showErrorTimerMessage = null;
|
||||
|
||||
@ -271,6 +271,7 @@
|
||||
return cb();
|
||||
setTimeout.paused = true;
|
||||
window.app.services.vfs.connection.disconnect();
|
||||
window.app.services["vfs.endpoint"].clearCache();
|
||||
setTimeout.force(function() {
|
||||
setTimeout.paused = false;
|
||||
setTimeout.clear();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user