mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Allow only a single group per device.
This commit is contained in:
parent
6141bdb5ce
commit
6a7e10882f
2 changed files with 34 additions and 18 deletions
|
@ -21,8 +21,10 @@ ChannelManager.prototype.register = function(id, timeout) {
|
|||
|
||||
ChannelManager.prototype.unregister = function(id) {
|
||||
var channel = this.channels[id]
|
||||
delete this.channels[id]
|
||||
clearTimeout(channel.timer)
|
||||
if (channel) {
|
||||
delete this.channels[id]
|
||||
clearTimeout(channel.timer)
|
||||
}
|
||||
}
|
||||
|
||||
ChannelManager.prototype.keepalive = function(id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue