mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-21 04:32:03 +00:00
([Port -invalidate]): Insist that is_valid is true at the beginning of
this method, don't test it and skip the body of this method. Force users to be careful about calling -invalidate more than once. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1088 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c6a9cf83d8
commit
0e774391ed
1 changed files with 6 additions and 7 deletions
|
@ -65,13 +65,12 @@
|
||||||
|
|
||||||
- (void) invalidate
|
- (void) invalidate
|
||||||
{
|
{
|
||||||
if (is_valid)
|
assert (is_valid);
|
||||||
{
|
|
||||||
[NotificationDispatcher
|
[NotificationDispatcher
|
||||||
postNotificationName: PortBecameInvalidNotification
|
postNotificationName: PortBecameInvalidNotification
|
||||||
object: self];
|
object: self];
|
||||||
is_valid = NO;
|
is_valid = NO;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (Class) packetClass
|
- (Class) packetClass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue