mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 17:57:57 +01:00
Failure behavior solved. It was a threading safe issue. Driver.Wakeup () moved to the Post method on MainLoopSyncContext class solved it.
This commit is contained in:
@@ -1726,6 +1726,7 @@ namespace Terminal.Gui {
|
||||
{
|
||||
mainLoop.AddIdle (() => {
|
||||
d (state);
|
||||
mainLoop.Driver.Wakeup ();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -354,10 +354,9 @@ namespace Mono.Terminal {
|
||||
/// </summary>
|
||||
public Func<bool> AddIdle (Func<bool> idleHandler)
|
||||
{
|
||||
lock (idleHandlers) {
|
||||
lock (idleHandlers)
|
||||
idleHandlers.Add (idleHandler);
|
||||
driver.Wakeup ();
|
||||
}
|
||||
|
||||
return idleHandler;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user