Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

Commit 3b2743f

Browse filesBrowse files
committed
fix dfget panic
Signed-off-by: yunfeiyangbuaa <yunfeiyang@buaa.edu.cn>
1 parent 7dd9e88 commit 3b2743f
Copy full SHA for 3b2743f

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎dfget/core/core.go‎

Copy file name to clipboardExpand all lines: dfget/core/core.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func reportMetrics(cfg *config.Config, supernodeAPI api.SupernodeAPI, downloadTi
299299
if err != nil {
300300
logrus.Errorf("failed to report metrics to supernode %s: %v", node, err)
301301
}
302-
if resp.IsSuccess() {
302+
if resp != nil && resp.IsSuccess() {
303303
return
304304
}
305305
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.