mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
fix nullref on unclean shutdown (#1725)
This commit is contained in:
@@ -1892,8 +1892,11 @@ namespace Terminal.Gui {
|
||||
void IMainLoopDriver.MainIteration ()
|
||||
{
|
||||
while (resultQueue.Count > 0) {
|
||||
var inputEvent = resultQueue.Dequeue () [0];
|
||||
ProcessInput?.Invoke (inputEvent);
|
||||
var inputRecords = resultQueue.Dequeue ();
|
||||
if (inputRecords != null && inputRecords.Length > 0) {
|
||||
var inputEvent = inputRecords [0];
|
||||
ProcessInput?.Invoke (inputEvent);
|
||||
}
|
||||
}
|
||||
if (winChanged) {
|
||||
winChanged = false;
|
||||
|
||||
Reference in New Issue
Block a user