mirror of
https://github.com/quasar/Quasar.git
synced 2026-04-25 23:35:58 +03:00
[GH-ISSUE #586] Client crash In the absence of Internet #344
Labels
No labels
bug
bug
cant-reproduce
discussion
duplicate
easy
enhancement
help wanted
improvement
invalid
need more info
pull-request
question
wont-add
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Quasar#344
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rezaf28 on GitHub (Feb 24, 2017).
Original GitHub issue: https://github.com/quasar/Quasar/issues/586
change Client program.cs codes with this code :
`
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Windows.Forms;
using xClient.Config;
using xClient.Core.Commands;
using xClient.Core.Cryptography;
using xClient.Core.Data;
using xClient.Core.Helper;
using xClient.Core.Installation;
using xClient.Core.Networking;
using xClient.Core.Utilities;
using System.Net;
using System.Threading.Tasks;
namespace xClient
{
internal static class Program
{
public static QuasarClient ConnectClient;
private static ApplicationContext _msgLoop;
{
try
{
using (var client = new WebClient())
{
using (var stream = client.OpenRead("http://dynupdate.no-ip.com/nic/update"))
{
return true;
}
}
}
catch
{
return false;
}
}
}
`
@abdullah2993 commented on GitHub (Feb 25, 2017):
Send a PR?
@yankejustin commented on GitHub (Mar 21, 2017):
I am not too sure what is going on in this new implementation. I think the client handles disconnections from the internet pretty gracefully already. It will automatically reconnect and that reconnection period can even be set. I just see no reason to re-invent the wheel when it is not even as good as the current method of staying connected.