mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 17:12:03 +00:00
Merge pull request #95 from gnustep/fix_timer_blocks_bug
Fix timer blocks bug
This commit is contained in:
commit
788595363f
1 changed files with 8 additions and 9 deletions
|
@ -116,7 +116,6 @@ static Class NSDate_class;
|
||||||
userInfo: (id)info
|
userInfo: (id)info
|
||||||
repeats: (BOOL)f
|
repeats: (BOOL)f
|
||||||
{
|
{
|
||||||
_block = nil;
|
|
||||||
if (ti <= 0.0)
|
if (ti <= 0.0)
|
||||||
{
|
{
|
||||||
ti = 0.0001;
|
ti = 0.0001;
|
||||||
|
@ -151,13 +150,13 @@ static Class NSDate_class;
|
||||||
repeats: (BOOL)repeats
|
repeats: (BOOL)repeats
|
||||||
block: (GSTimerBlock)block
|
block: (GSTimerBlock)block
|
||||||
{
|
{
|
||||||
|
ASSIGN(_block, block);
|
||||||
return [self initWithFireDate: date
|
return [self initWithFireDate: date
|
||||||
interval: interval
|
interval: interval
|
||||||
target: nil
|
target: nil
|
||||||
selector: NULL
|
selector: NULL
|
||||||
userInfo: nil
|
userInfo: nil
|
||||||
repeats: repeats];
|
repeats: repeats];
|
||||||
ASSIGN(_block, block);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue