Skip to content

Commit 600c2b3

Browse files
refactor: adapter.getState should not be proxied
1 parent 413b01d commit 600c2b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Device.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ class Device {
272272

273273
// We need to wrap the rawAdapter in a blocking proxy to make sure commands
274274
// run in sequence rather in in parallel. See JSDoc comment for more info.
275-
const adapter = createBlockingProxy(rawAdapter, { exceptions: ["sendData", "connectSerial"] });
275+
const adapter = createBlockingProxy(rawAdapter, { exceptions: ["sendData", "connectSerial", "getState"] });
276276
adapter.__proxyMeta.beforeEachCall(({ item }) => {
277277
this.action.set(item.field.toString());
278278
this.busy.set(true);

0 commit comments

Comments
 (0)