From 11a042d0aa066e6a2f4b5843a875939b806ad596 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Tue, 2 Jun 2015 16:14:39 +0900 Subject: [PATCH] Looks like the DB needs ready: false on device absence or plugged in devices show up as immediately available. That's a bug, will need to investigate later. --- lib/db/api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/db/api.js b/lib/db/api.js index 6b665104..90e30f4a 100644 --- a/lib/db/api.js +++ b/lib/db/api.js @@ -163,6 +163,7 @@ dbapi.unsetDeviceOwner = function(serial) { dbapi.setDeviceAbsent = function(serial) { return db.run(r.table('devices').get(serial).update({ present: false + , ready: false })) }