Skip to content

Commit

Permalink
🎨 Bug fixed
Browse files Browse the repository at this point in the history
nuintun committed Mar 31, 2018
1 parent 91ec715 commit c780772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/proxy.js
Original file line number Diff line number Diff line change
@@ -42,8 +42,8 @@ exports.exec = function(command, params) {
// Stdout
stdout.on('data', data => metadata.push(data));
stdout.on('close', () => {
// Only parse when no error
if (!errors.length) {
// Only parse when with metadata
if (metadata.length) {
// Decode data use utf16le
let data = Buffer.concat(metadata).toString('utf16le');

0 comments on commit c780772

Please sign in to comment.