Skip to content

Commit 8ed4777

Browse files
committed
refactor(lib): use correct variable when checking memory usage response
1 parent 274ab3c commit 8ed4777

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/connections/src/lib/deviceControlConnection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class DeviceControlConnection extends EventEmitter {
164164
//< {"id":7,"status":200,"body":{"memFree":123, ...}}
165165

166166
const memory = await this.executeCommand<MemoryStatus>('getMemoryUsage', null, 5000);
167-
if (typeof memory === 'object' && !Array.isArray(msg) && msg != null) {
167+
if (typeof memory === 'object' && !Array.isArray(memory) && memory != null) {
168168
this.lastMemory = memory; // spy on result
169169
}
170170
return memory;

0 commit comments

Comments
 (0)