Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: cleanup didn't unswizzle classes that had already been swizzled
This would happen when using other code that itself swizzles classes (i.e. ReactiveCocoa). For example, if a rac_signalForSelector was called on an object then later an aspect hook was installed and further removed, we would end up in a situation where Aspect's class swizzling (in-place swizzling of -forwardInvocation:) would never be ununstalled when the last hook was removed, later wrecking havoc with RAC's own use of -forwardInvocation. In short, this pull request fixes hair-pulling crashes.
- Loading branch information