Skip to content

Commit

Permalink
fix server restart validation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkiokan committed Apr 25, 2022
1 parent 61e2267 commit a5da4bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ export default defineComponent({
},
validateBeforeServerStart(){
if(this.state == 'running')
return this.notify("Server is already running")
if(!this.server.ip)
return this.showError("Please select your Local IP first")
Expand All @@ -112,6 +109,9 @@ export default defineComponent({
startServer(){
if(this.validateBeforeServerStart() !== false) return
if(this.state == 'running')
return this.notify("Server is already running")
window.server.start(JSON.stringify(this.server))
},
Expand Down

0 comments on commit a5da4bc

Please sign in to comment.