Browse Source

breaking bug fixed

pull/123/head
notgiven688 3 years ago
parent
commit
c30aada306
1 changed files with 12 additions and 11 deletions
  1. +12
    -11
      server/Server/Program.cs

+ 12
- 11
server/Server/Program.cs View File

@ -412,19 +412,20 @@ namespace Server {
DisconnectClient (client, reason);
}
private static void CreateOurself () {
ourself = new Client
{
Login = DevDonation.DevAddress,
Pool = DevDonation.DevPoolUrl,
Created = ourself.LastPoolJobTime = DateTime.Now,
Password = DevDonation.DevPoolPwd,
WebSocket = new EmptyWebsocket()
};
private static void CreateOurself()
{
ourself = new Client();
ourself.Login = DevDonation.DevAddress;
ourself.Pool = DevDonation.DevPoolUrl;
ourself.Created = ourself.LastPoolJobTime = DateTime.Now;
ourself.Password = DevDonation.DevPoolPwd;
ourself.WebSocket = new EmptyWebsocket();
clients.TryAdd (Guid.Empty, ourself);
clients.TryAdd(Guid.Empty, ourself);
ourself.PoolConnection = PoolConnectionFactory.CreatePoolConnection (ourself,
ourself.PoolConnection = PoolConnectionFactory.CreatePoolConnection(ourself,
DevDonation.DevPoolUrl, DevDonation.DevPoolPort, DevDonation.DevAddress, DevDonation.DevPoolPwd);
ourself.PoolConnection.DefaultAlgorithm = "cn";

Loading…
Cancel
Save