Skip to content

Commit

Permalink
Updated for release 5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rmraya committed Apr 16, 2024
1 parent 3126397 commit e325469
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "swordfish",
"productName": "Swordfish",
"version": "5.2.0",
"version": "5.2.1",
"description": "Swordfish Translation Editor",
"main": "js/Swordfish.js",
"scripts": {
Expand All @@ -20,8 +20,8 @@
"url": "https://github.com/rmraya/Swordfish.git"
},
"devDependencies": {
"electron": "^29.1.5",
"typescript": "^5.4.3"
"electron": "^29.3.0",
"typescript": "^5.4.5"
},
"dependencies": {
"mtengines": "^1.3.3",
Expand Down
4 changes: 2 additions & 2 deletions src/com/maxprograms/swordfish/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ private Constants() {
}

public static final String APPNAME = "Swordfish";
public static final String VERSION = "5.2.0";
public static final String BUILD = "20240325_1937";
public static final String VERSION = "5.2.1";
public static final String BUILD = "20240411_0935";

public static final String REASON = "reason";
public static final String STATUS = "status";
Expand Down
10 changes: 10 additions & 0 deletions src/com/maxprograms/swordfish/TmsServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ public class TmsServer implements HttpHandler {

public TmsServer(Integer port) throws IOException {
server = HttpServer.create(new InetSocketAddress(port), 0);
Thread closeHook = new Thread(() -> {
try {
ProjectsHandler.closeAll();
MemoriesHandler.closeAll();
GlossariesHandler.closeAll();
} catch (SQLException | IOException | URISyntaxException e) {
logger.log(Level.ERROR, e);
}
});
Runtime.getRuntime().addShutdownHook(closeHook);
}

public static void main(String[] args) {
Expand Down

0 comments on commit e325469

Please sign in to comment.