mirror of
https://github.com/gnustep/libs-ec.git
synced 2025-02-16 00:21:01 +00:00
In EcConsole, pass distantFuture to -runMode:beforeDate: to prevent
returning immediately from the run loop after recent gnustep-base changes. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/ec/trunk@40029 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
45e63db3de
commit
e633a3437f
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2016-07-20 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* EcConsole.m (-ecRun): Pass distantFuture to -runMode:beforeDate:
|
||||
to prevent returning immediately from the run loop after recent
|
||||
gnustep-base changes.
|
||||
|
||||
2016-06-09 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* EcControl.m: Fix bug where alerter config was not always updated
|
||||
|
|
|
@ -944,6 +944,7 @@ static BOOL commandIsRepeat (NSString *string)
|
|||
- (int) ecRun
|
||||
{
|
||||
NSRunLoop *loop;
|
||||
NSDate *distantFuture;
|
||||
|
||||
#if defined(HAVE_LIBREADLINE)
|
||||
if (YES == interactive)
|
||||
|
@ -953,8 +954,9 @@ static BOOL commandIsRepeat (NSString *string)
|
|||
}
|
||||
#endif
|
||||
|
||||
distantFuture = [NSDate distantFuture];
|
||||
loop = [NSRunLoop currentRunLoop];
|
||||
while (YES == [loop runMode: NSDefaultRunLoopMode beforeDate: nil])
|
||||
while (YES == [loop runMode: NSDefaultRunLoopMode beforeDate: distantFuture])
|
||||
{
|
||||
if (0 != [self cmdSignalled])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue