diff options
author | jgmdev <jgmdev@gmail.com> | 2023-05-02 14:34:57 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2023-05-02 14:34:57 -0400 |
commit | 1cf38cf027f057431e9e80608cf0f91ab22cffdf (patch) | |
tree | 9b909c0a8a741d6d6db79cb2a805aa4f105c363b | |
parent | 8ff726fe4823e9881208dd665878876cc9189b2d (diff) | |
download | lite-xl-plugins-1cf38cf027f057431e9e80608cf0f91ab22cffdf.tar.gz lite-xl-plugins-1cf38cf027f057431e9e80608cf0f91ab22cffdf.zip |
IPC: return from overriden system.wait_event
-rw-r--r-- | manifest.json | 2 | ||||
-rw-r--r-- | plugins/ipc.lua | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/manifest.json b/manifest.json index baddd9a..28d6642 100644 --- a/manifest.json +++ b/manifest.json @@ -330,7 +330,7 @@ }, { "description": "Adds inter-process communication support", - "version": "0.2", + "version": "0.3", "path": "plugins/ipc.lua", "id": "ipc", "mod_version": "3" diff --git a/plugins/ipc.lua b/plugins/ipc.lua index 16eab5d..428c4cf 100644 --- a/plugins/ipc.lua +++ b/plugins/ipc.lua @@ -828,12 +828,12 @@ system.wait_event = function(timeout) local h = 0.5 / 2 local dt = math.ceil(t / h) * h - t - system_wait_event(dt + 1 / config.fps) + return system_wait_event(dt + 1 / config.fps) else - system_wait_event() + return system_wait_event() end else - system_wait_event(timeout) + return system_wait_event(timeout) end end |