-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure notify is patched when a client is cloned
clone-client doesn't copy over monkey patched methods on to new clones¹, so we have to hook into the cloning process to monkey patch them ¹ This is actually a good thing as monkey patched methods will usually work by holding a reference to an old client to call the un-patched method. If we copied them over then they would still reference the original client, not the clone
- Loading branch information
1 parent
0d827d8
commit 6b35ba1
Showing
2 changed files
with
138 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters