Example #1
0
		private async void SocketConnectAsync(AChannel channel)
		{
			while (true)
			{
				try
				{
					await channel.ConnectAsync();
					break;
				}
				catch (Exception e)
				{
					Log.Trace(e.ToString());
				}

				await this.Timer.Sleep(5000);
			}
		}
Example #2
0
        private async void SocketConnectAsync(AChannel channel)
        {
            while (true)
            {
                try
                {
                    await channel.ConnectAsync();

                    break;
                }
                catch (Exception e)
                {
                    Log.Trace(e.ToString());
                }

                await this.Timer.Sleep(5000);
            }
        }