Skip to content

Commit

Permalink
some minor sipjs improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianKirmaier committed Apr 6, 2024
1 parent 19b6e40 commit 0e10dc8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
JPRO_PLATFORM_VERSION = 0.2.16-SNAPSHOT

JPRO_VERSION = 2024.1.0
JPRO_VERSION = 2024.1.1-SNAPSHOT
JAVAFX_VERSION = 17.0.10
SIMPLEFX_VERSION = 3.2.32
JMEMORYBUDDY_VERSION = 0.5.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void makeHangupButton() {
session.set(null);
});
session.addListener((observable, oldValue, newValue) -> {
button.setDisable(session.get() == null);
button.setDisable(session.get() == null || !session.get().stateProperty().get().equals(Session.State.Established));
});
button.setDisable(session.get() == null);
getChildren().add(button);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ public class State {
}

public void bye() {
webapi.executeScript(session.getName() + ".bye();");
webapi.js().eval(session.getName() + ".bye();")
.toPromise()
.onPromiseError(e -> e.printStackTrace());
}

public void endCall() {
Expand Down

0 comments on commit 0e10dc8

Please sign in to comment.