_try_reconnect = false,
_idle_subsystems = { ... }
}, { __index = mpc })
- self:_connect()
+ self:connect()
return self
end
end
end
-function mpc:_connect()
+function mpc:connect()
if self._connected then return end
-- Reset all of our state
self._reply_handlers = {}
end
function mpc:send(...)
- self:_connect()
+ self:connect()
if not self._connected then
return
end