Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirasawaSama committed Apr 27, 2020
1 parent 5edeb01 commit 4d303be
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 36 deletions.
58 changes: 29 additions & 29 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
"@types/fs-extra": "^8.1.0",
"@types/lodash": "^4.14.150",
"@types/minimist": "^1.2.0",
"@types/node": "^13.13.2",
"@types/node": "^13.13.4",
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.6",
"@types/react-router-dom": "^5.1.4",
"@types/react-router-dom": "^5.1.5",
"@types/semver": "^7.1.0",
"@types/url-join": "^4.0.0",
"@types/yauzl": "^2.9.1",
Expand Down
Binary file modified screenshots/accounts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed screenshots/home.jpg
Binary file not shown.
Binary file added screenshots/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/versions.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/models/ProfilesStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export default class ProfilesStore extends Store {
this.onLoadExtraConfigFailed(e)
}

downloader.syncSockets()
this.checkModsDirectory().catch(console.error)
this.syncVersions().catch(console.error)
// this.ensureVersionManifest().catch(console.error)
Expand Down
6 changes: 1 addition & 5 deletions src/plugin/DownloadProviders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,9 @@ const DownloadProviders = {

export class ProgressDownloader extends HttpDownloader {
public bytes = 0
public syncSockets = () => {
public syncSockets () {
this.agents.http.maxSockets = this.agents.https.maxSockets = profilesStore.extraJson.downloadThreads
}
constructor () {
super()
pluginMaster.once('loaded', this.syncSockets)
}
public downloadFile (option: DownloadOption) {
const fn = option.progress
option.progress = (c, w, t, u) => {
Expand Down

0 comments on commit 4d303be

Please sign in to comment.