mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-10 16:20:42 +00:00
Fix for github bug #289
This commit is contained in:
parent
8209793ac7
commit
c7125ec291
2 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2022-03-23 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSTimer.m: wrap call to block in exception handler (bug #289)
|
||||
|
||||
2023-01-13 Frederik Seiffert <frederik@algoriddim.com>
|
||||
|
||||
* Source/Additions/GSInsensitiveDictionary.m:
|
||||
|
|
|
@ -289,9 +289,19 @@ static Class NSDate_class;
|
|||
if (NO == _invalidated)
|
||||
{
|
||||
if ((id)_block != nil)
|
||||
{
|
||||
NS_DURING
|
||||
{
|
||||
CALL_NON_NULL_BLOCK(_block, self);
|
||||
}
|
||||
NS_HANDLER
|
||||
{
|
||||
NSLog(@"*** NSTimer ignoring exception '%@' (reason '%@') "
|
||||
@"raised during posting of timer with block",
|
||||
[localException name], [localException reason]);
|
||||
}
|
||||
NS_ENDHANDLER
|
||||
}
|
||||
else
|
||||
{
|
||||
id target;
|
||||
|
|
Loading…
Reference in a new issue