Skip to content

Commit 88a6a2b

Browse files
committed
ADAP-156: added proper exit in DesktopDemo.java
1 parent 8536890 commit 88a6a2b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

release/tabstrip.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>$Title$</title>
6+
</head>
7+
<body>
8+
$END$
9+
</body>
10+
</html>

src/main/java/com/openfin/desktop/demo/OpenFinDesktopDemo.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,12 @@ public void windowOpened(WindowEvent e) {
361361
@Override
362362
public void windowClosing(WindowEvent e) {
363363
closeDesktop();
364+
try {
365+
Thread.sleep(1000);
366+
java.lang.System.exit(0);
367+
} catch (Exception ex) {
368+
ex.printStackTrace();
369+
}
364370
}
365371

366372
@Override

0 commit comments

Comments
 (0)