avoid memory leak when re-adding the eventlisteners

This commit is contained in:
Fre
2020-08-21 10:32:02 +02:00
parent e136ed4127
commit d0c92cac85
4 changed files with 31 additions and 9 deletions

View File

@@ -41,6 +41,7 @@ namespace ElectronNET.API
if (_socket == null && !HybridSupport.IsElectronActive)
{
_socket = IO.Socket(new Uri("http://localhost"), new IO.Options { AutoConnect = false });
Console.WriteLine("Electron not active. Socket created.");
}
}
}