mirror of
https://github.com/fhmq/hmq.git
synced 2026-05-09 00:50:38 +00:00
Allow Broker DisConnect connections by ClientId (#135)
* Allow Broker DisConnect connections by ClientId * Allow Broker DisConnect connections by ClientId
This commit is contained in:
+2
-2
@@ -11,8 +11,8 @@ func InitHTTPMoniter(b *Broker) {
|
||||
clientid := c.Param("clientid")
|
||||
cli, ok := b.clients.Load(clientid)
|
||||
if ok {
|
||||
conn, succss := cli.(*client)
|
||||
if succss {
|
||||
conn, success := cli.(*client)
|
||||
if success {
|
||||
conn.Close()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user