Allow Broker DisConnect connections by ClientId (#135)
* Allow Broker DisConnect connections by ClientId * Allow Broker DisConnect connections by ClientId
This commit is contained in:
1 parent
878e7fce3f
commit
ab117be4a8
3 files changed
+16
-2
No files matched your search
+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