mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-08-05 15:29:47 +00:00
avoid memory leak when re-adding the eventlisteners
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user