Skip to content

Commit

Permalink
Merge pull request #77 from godmodelabs/return-correct-send-success
Browse files Browse the repository at this point in the history
return success correctly
  • Loading branch information
ADopeReader authored Sep 13, 2023
2 parents 1480c20 + 65f34a8 commit 8955142
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,7 @@ class BGJSWebSocket(engine: V8Engine) : JNIV8Object(engine), Runnable {
success = false
return@runLocked
}
if (socket != null) {
socket?.send(msg)
success = true
}
success = socket?.send(msg)?: false
}
return success
}
Expand Down

0 comments on commit 8955142

Please sign in to comment.