From bee518e1ef24504f6d263ceb38e4740fe5025178 Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Sat, 1 Sep 2018 16:28:31 -0700 Subject: [PATCH] let the door-open return fast --- src/models/door.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/door.js b/src/models/door.js index e19b948..2441927 100644 --- a/src/models/door.js +++ b/src/models/door.js @@ -7,12 +7,12 @@ module.exports = class Door { return new Promise(success => { console.log('OPEN DOOR!') const board = new Board(2) + success(board.allOn()) setTimeout(() => { console.log('CLOSING DOOR!') board.allOff() success() }, DELAY) - return board.allOn() }) }