Merge pull request #95 from gnustep/fix_timer_blocks_bug

Fix timer blocks bug
This commit is contained in:
Fred Kiefer 2020-01-20 09:36:15 +01:00 committed by GitHub
commit 788595363f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,6 @@ static Class NSDate_class;
userInfo: (id)info
repeats: (BOOL)f
{
_block = nil;
if (ti <= 0.0)
{
ti = 0.0001;
@ -151,13 +150,13 @@ static Class NSDate_class;
repeats: (BOOL)repeats
block: (GSTimerBlock)block
{
ASSIGN(_block, block);
return [self initWithFireDate: date
interval: interval
target: nil
selector: NULL
userInfo: nil
repeats: repeats];
ASSIGN(_block, block);
}
/**