From 990c171bed0e052a07145ad03fae89c33d86ac17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 13 Aug 2020 23:37:31 +0200 Subject: [PATCH] networkAgent: Add missing Uint8Array => string conversion When promisifying async operations in commit 764527c8c, the finish function for read_line_async() was sneakily changed from read_line_finish_utf8() to read_line_finish(). That is, the call returns a Uint8Array now that requires an explicit conversion to string. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1407 --- js/ui/components/networkAgent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/components/networkAgent.js b/js/ui/components/networkAgent.js index 32ec1da85..29565d214 100644 --- a/js/ui/components/networkAgent.js +++ b/js/ui/components/networkAgent.js @@ -494,7 +494,7 @@ var VPNRequestHandler = class { return; } - this._vpnChildProcessLineOldStyle(line); + this._vpnChildProcessLineOldStyle(ByteArray.toString(line)); // try to read more! this._readStdoutOldStyle();