mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Fix device sometimes showing up twice on the list if coming back from the device page while releasing the device. Caused by websocket telling us about the release before we got the device data.
This commit is contained in:
@@ -145,9 +145,7 @@ module.exports = function DeviceServiceFactory($http, socket, EnhanceDeviceServi
|
||||
scopedSocket.on('device.change', changeListener)
|
||||
|
||||
this.add = function(device) {
|
||||
remove(device)
|
||||
insert(device)
|
||||
notify({
|
||||
addListener({
|
||||
important: true
|
||||
, data: device
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user