Skip to content

Commit

Permalink
fix: init http/sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Dwynr committed Nov 16, 2024
1 parent e081624 commit cf48c06
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@filen/desktop",
"version": "3.0.28",
"buildNumber": 328,
"version": "3.0.29",
"buildNumber": 329,
"description": "Filen Desktop Client",
"author": "Filen Cloud Dienste UG (haftungsbeschränkt) <[email protected]>",
"main": "dist/index.js",
Expand Down Expand Up @@ -67,7 +67,7 @@
"@filen/s3": "^0.2.44",
"@filen/sdk": "^0.1.176",
"@filen/sync": "^0.1.80",
"@filen/web": "^0.1.53",
"@filen/web": "^0.1.54",
"@filen/webdav": "^0.2.59",
"axios": "^0.28.1",
"cors": "^2.8.5",
Expand Down
9 changes: 6 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,16 @@ export class FilenDesktop {

this.logger.log("info", "Starting sync and http inside worker")

await this.worker.invoke("restartSync")

await this.worker.invoke("restartHTTP").catch(err => {
this.worker.invoke("restartHTTP").catch(err => {
this.logger.log("error", err, "http.start")
this.logger.log("error", err)
})

this.worker.invoke("restartSync").catch(err => {
this.logger.log("error", err, "sync.start")
this.logger.log("error", err)
})

this.logger.log("info", "Started")
} catch (e) {
this.logger.log("error", e)
Expand Down

0 comments on commit cf48c06

Please sign in to comment.