aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/mason-core/EventEmitter.lua3
-rw-r--r--lua/mason-core/installer/handle.lua2
2 files changed, 3 insertions, 2 deletions
diff --git a/lua/mason-core/EventEmitter.lua b/lua/mason-core/EventEmitter.lua
index ad739cfb..5d7aeaa0 100644
--- a/lua/mason-core/EventEmitter.lua
+++ b/lua/mason-core/EventEmitter.lua
@@ -56,7 +56,8 @@ function EventEmitter:off(event, handler)
return false
end
-function EventEmitter:clear_event_handlers()
+---@private
+function EventEmitter:__clear_event_handlers()
self.__event_handlers = {}
self.__event_handlers_once = {}
end
diff --git a/lua/mason-core/installer/handle.lua b/lua/mason-core/installer/handle.lua
index 222c7ddf..7a3fc40f 100644
--- a/lua/mason-core/installer/handle.lua
+++ b/lua/mason-core/installer/handle.lua
@@ -204,7 +204,7 @@ function InstallHandle:close()
self.spawn_handles = {}
self:set_state "CLOSED"
self:emit "closed"
- self:clear_event_handlers()
+ self:__clear_event_handlers()
end
function InstallHandleMt:__tostring()