mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
notify immediately if in correct thread
This commit is contained in:
parent
419407b724
commit
c7fc9c4b65
1 changed files with 2 additions and 1 deletions
|
@ -933,7 +933,8 @@ pty_slave(const char* name)
|
|||
if (_hasNotified == NO)
|
||||
{
|
||||
_hasNotified = YES;
|
||||
if ([_launchingThread isExecuting] == YES)
|
||||
if (_launchingThread != [NSThread currentThread]
|
||||
&& [_launchingThread isExecuting] == YES)
|
||||
{
|
||||
[self performSelector: @selector(_notifyOfTermination)
|
||||
onThread: _launchingThread
|
||||
|
|
Loading…
Reference in a new issue