Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe60f37213 |
No files matched your search
@@ -53,6 +53,9 @@ namespace FluentTerminal.SystemTray
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
// Allow CPU to jump between TerminalSessions' ReadingLoop Tasks
|
||||
await Task.Delay(1).ConfigureAwait(false);
|
||||
|
||||
bool paused;
|
||||
|
||||
lock (_lock)
|
||||
|
||||
@@ -22,6 +22,7 @@ namespace FluentTerminal.SystemTray.Services.ConPty
|
||||
|
||||
public void Close()
|
||||
{
|
||||
_terminal?.ConsoleOutStream?.Close();
|
||||
_reader?.Dispose();
|
||||
|
||||
ConnectionClosed?.Invoke(this, _terminal.ExitCode);
|
||||
@@ -91,6 +92,11 @@ namespace FluentTerminal.SystemTray.Services.ConPty
|
||||
_reader?.SetPaused(value);
|
||||
}
|
||||
|
||||
~ConPtySession()
|
||||
{
|
||||
Dispose(false);
|
||||
}
|
||||
|
||||
#region IDisposable Support
|
||||
|
||||
private bool _disposed;
|
||||
@@ -113,6 +119,7 @@ namespace FluentTerminal.SystemTray.Services.ConPty
|
||||
public void Dispose()
|
||||
{
|
||||
_terminal.Exited -= _terminal_Exited;
|
||||
_terminal.OutputReady -= _terminal_OutputReady;
|
||||
Dispose(true);
|
||||
}
|
||||
|
||||
|
||||
@@ -175,6 +175,7 @@ namespace FluentTerminal.SystemTray.Services.ConPty
|
||||
|
||||
if (disposeManaged)
|
||||
{
|
||||
ConsoleOutStream.Dispose();
|
||||
_consoleInputWriter?.Dispose();
|
||||
_process?.Dispose();
|
||||
_pseudoConsole?.Dispose();
|
||||
|
||||
Reference in new issue
Block a user