Skip to content

Commit

Permalink
Fix ozengine restart command
Browse files Browse the repository at this point in the history
  • Loading branch information
luxluth committed Apr 17, 2024
1 parent 30dc307 commit da0a3a3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions lua/oz/engine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,16 @@ function EC:start(instance)
end
end
end
-- ozengine x-oz://system/OPI.ozf

---Shutdown the ozengine server
function EC:shutdown()
if self.compiler.active then
self:send({
character = 0,
data = "{Application.exit 0}",
filename = "",
line = 0,
})
-- self:send({
-- character = 0,
-- data = "{Application.exit 0}",
-- filename = "",
-- line = 0,
-- })
vim.fn.jobstop(self.compiler.pid)
self.compiler.pid = nil
self.compiler.active = false
Expand Down

0 comments on commit da0a3a3

Please sign in to comment.