Skip to content

Commit cc35901

Browse files
committed
Minor alteration to new API within XMPPModule. (changing method: didDeactivate -> willDeactivate)
1 parent 66e1709 commit cc35901

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Core/XMPPModule.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ - (void)deactivate
116116

117117
if (xmppStream)
118118
{
119+
[self willDeactivate];
120+
119121
[xmppStream removeDelegate:self delegateQueue:moduleQueue];
120122
[xmppStream unregisterModule:self];
121123

122124
xmppStream = nil;
123-
124-
[self didDeactivate];
125125
}
126126
};
127127

@@ -135,10 +135,10 @@ - (void)deactivate
135135
* It is recommended that subclasses override this method (instead of deactivate:)
136136
* to perform tasks after the module has been deactivated.
137137
*
138-
* This method is only invoked if the module is transitioned from activated to deactivated.
138+
* This method is only invoked if the module is transitioning from activated to deactivated.
139139
* This method is always invoked on the moduleQueue.
140140
**/
141-
- (void)didDeactivate
141+
- (void)willDeactivate
142142
{
143143
// Override me to do custom work after the module is deactivated
144144
}

0 commit comments

Comments
 (0)