diff --git a/Source/Port.m b/Source/Port.m index e31d97f82..c8acbba5e 100644 --- a/Source/Port.m +++ b/Source/Port.m @@ -65,13 +65,12 @@ - (void) invalidate { - if (is_valid) - { - [NotificationDispatcher - postNotificationName: PortBecameInvalidNotification - object: self]; - is_valid = NO; - } + assert (is_valid); + + [NotificationDispatcher + postNotificationName: PortBecameInvalidNotification + object: self]; + is_valid = NO; } - (Class) packetClass