[gnome-boxes/flatpak-downloader-fail-when-no-connectivity] downloader, flatpak: Fail when there's no connectivity



commit 00281f6aa7e7ce6665a2818ca35fa61eeb7e14e8
Author: Felipe Borges <felipeborges gnome org>
Date:   Mon Feb 3 15:27:26 2020 +0100

    downloader, flatpak: Fail when there's no connectivity
    
    This was disabled since we introduced the Flatpak, but now works
    just fine in a flatpak sandbox.

 src/downloader.vala | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/downloader.vala b/src/downloader.vala
index aeb90c0f..e69aaaa4 100644
--- a/src/downloader.vala
+++ b/src/downloader.vala
@@ -126,11 +126,9 @@ private async void download_from_http (Download download, Cancellable? cancellab
         msg.response_body.set_accumulate (false);
         var address = msg.get_address ();
         var connectable = new NetworkAddress (address.name, (uint16) address.port);
-#if !FLATPAK
         var network_monitor = NetworkMonitor.get_default ();
         if (!(yield network_monitor.can_reach_async (connectable)))
             throw new Boxes.Error.INVALID ("Failed to reach host '%s' on port '%d'", address.name, 
address.port);
-#endif
         GLib.Error? err = null;
         ulong cancelled_id = 0;
         if (cancellable != null)


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