Browse Source

修改bug

yjp 2 months ago
parent
commit
c49b040b79
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mqtt_binding/mqtt_client/router/router.go

+ 1 - 1
mqtt_binding/mqtt_client/router/router.go

@@ -29,7 +29,7 @@ func NewRouter(group string, handlers []Handler, onAddItemFunc OnAddItemFunc) *R
 }
 
 func DestroyRouter(router *Router) {
-	if router != nil {
+	if router == nil {
 		return
 	}