Make fileNeed API command async

This commit is contained in:
shortcutme 2017-10-04 12:32:40 +02:00
parent 53da40fe5d
commit 903b62ba7c
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -14,6 +14,7 @@ from Debug import Debug
from util import QueryJson, RateLimit
from Plugin import PluginManager
from Translate import translate as _
from util import helper
@PluginManager.acceptPlugins
@ -37,7 +38,7 @@ class UiWebsocket(object):
"channelJoinAllsite", "serverUpdate", "serverPortcheck", "serverShutdown", "serverShowdirectory",
"certSet", "configSet", "permissionAdd", "permissionRemove"
)
self.async_commands = ("fileGet", "fileList", "dirList")
self.async_commands = ("fileGet", "fileList", "dirList", "fileNeed")
# Start listener loop
def start(self):