[gnome-shell] networkAgent: Add missing Uint8Array => string conversion



commit 990c171bed0e052a07145ad03fae89c33d86ac17
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Aug 13 23:37:31 2020 +0200

    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 32ec1da852..29565d214f 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();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]