Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
9657314a
"src/vscode:/vscode.git/clone" did not exist on "a647682224fed7d65ac4d2a75ed9f2db8e5253e7"
Commit
9657314a
authored
Jul 21, 2023
by
Eva Ho
Browse files
address comment
parent
3f7d2336
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
app/src/index.ts
app/src/index.ts
+3
-4
No files found.
app/src/index.ts
View file @
9657314a
...
...
@@ -115,15 +115,14 @@ function server() {
logger
.
error
(
data
.
toString
().
trim
())
})
function
restart
(
code
:
number
)
{
logger
.
info
(
`Server exited with code:
${
code
}
`
)
function
restart
()
{
setTimeout
(
server
,
3000
)
}
proc
.
on
(
'
exit
'
,
code
=>
restart
(
code
)
)
proc
.
on
(
'
exit
'
,
restart
)
app
.
on
(
'
before-quit
'
,
()
=>
{
proc
.
off
(
'
exit
'
,
code
=>
restart
(
code
)
)
proc
.
off
(
'
exit
'
,
restart
)
proc
.
kill
()
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment