Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit87e35e5

Browse files
laodouyalaodouya
laodouya
authored and
laodouya
committed
Fix dbms shutdown bug while mqtt client is nil.
1 parentfc33dce commit87e35e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎worker/dbms.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,9 @@ func (dbms *DBMS) Shutdown() (err error) {
673673

674674
dbms.busService.Stop()
675675

676-
dbms.mqttClient.Close()
676+
ifdbms.mqttClient!=nil {
677+
dbms.mqttClient.Close()
678+
}
677679

678680
return
679681
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp