File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -155,10 +155,7 @@ private Receive WaitingForRegistration(IActorRef commander)
155
155
// up to this point we've been watching the commander,
156
156
// but since registration is now complete we only need to watch the handler from here on
157
157
if ( ! Equals ( register . Handler , commander ) )
158
- {
159
- Context . Unwatch ( commander ) ;
160
- Context . Watch ( register . Handler ) ;
161
- }
158
+ SignDeathPact ( register . Handler ) ; // will unsign death pact with commander automatically
162
159
163
160
if ( _traceLogging ) Log . Debug ( "[{0}] registered as connection handler" , register . Handler ) ;
164
161
@@ -727,6 +724,7 @@ private void Abort()
727
724
protected void StopWith ( CloseInformation closeInfo )
728
725
{
729
726
_closedMessage = closeInfo ;
727
+ UnsignDeathPact ( ) ;
730
728
Context . Stop ( Self ) ;
731
729
}
732
730
You can’t perform that action at this time.
0 commit comments