fix: bump codemp version, cancel promise

This commit is contained in:
əlemi 2024-10-01 21:08:28 +02:00
parent 6094c7b7b8
commit 28b14eb761
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 2 additions and 5 deletions

View file

@ -38,7 +38,7 @@ end
local sep = '/' local sep = '/'
if os_uname.sysname == "Windows_NT" then sep = '\\' end if os_uname.sysname == "Windows_NT" then sep = '\\' end
local version = "v0.7.2" local version = "v0.7.3"
local native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."new-native."..ext local native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."new-native."..ext
local replace_native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."native."..ext local replace_native_path = plugin_dir..sep.."lua"..sep.."codemp"..sep.."native."..ext

View file

@ -46,10 +46,7 @@ local function async_poller(generator, callback)
timer = vim.uv.new_timer(), timer = vim.uv.new_timer(),
stop = function (this) stop = function (this)
if this.promise ~= nil then if this.promise ~= nil then
-- TODO the :abort() change still hasnt been merged, so check for its presence! this.promise:cancel()
if this.promise.abort ~= nil then
this.promise:abort()
end
end end
this.timer:stop() this.timer:stop()
this.timer:close() this.timer:close()