mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix regression in vfs.ping
This commit is contained in:
parent
ff92b4e3d8
commit
581cd51fca
@ -61,7 +61,7 @@ define(function(require, exports, module) {
|
||||
};
|
||||
}
|
||||
|
||||
if (!api) return callback(new Error("Client is offline"));
|
||||
if (!api || !vfs.connection) return callback(new Error("Client is offline"));
|
||||
|
||||
if (!vfs.isIdle())
|
||||
return vfs.connection.once("message", ping.bind(null, callback));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user