File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -1014,9 +1014,7 @@ impl<A: Actor> Instance<A> {
1014
1014
while self . cell . child_count ( ) > 0 {
1015
1015
match self . signal_receiver . recv ( ) . await ? {
1016
1016
Signal :: ChildStopped ( pid) => {
1017
- if let Some ( child) = self . cell . get_child ( pid) {
1018
- self . cell . unlink ( & child) ;
1019
- }
1017
+ assert ! ( self . cell. get_child( pid) . is_none( ) ) ;
1020
1018
}
1021
1019
_ => ( ) ,
1022
1020
}
@@ -1061,12 +1059,7 @@ impl<A: Actor> Instance<A> {
1061
1059
break ' messages;
1062
1060
} ,
1063
1061
Signal :: ChildStopped ( pid) => {
1064
- let result = self . cell. get_child( pid) ;
1065
- if let Some ( child) = result {
1066
- self . cell. unlink( & child) ;
1067
- } else {
1068
- tracing:: debug!( "received signal for unknown child pid {}" , pid) ;
1069
- }
1062
+ assert!( self . cell. get_child( pid) . is_none( ) ) ;
1070
1063
} ,
1071
1064
}
1072
1065
}
You can’t perform that action at this time.
0 commit comments