1
0
Fork 0
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:
Simo Kinnunen 2014-02-03 02:28:58 +09:00
parent 6141bdb5ce
commit 6a7e10882f
2 changed files with 34 additions and 18 deletions

View file

@ -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) {