File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -1084,18 +1084,21 @@ impl<'a> Interface<'a> {
1084
1084
match device. transmit ( ) . ok_or ( Error :: Exhausted ) {
1085
1085
Ok ( _t) => {
1086
1086
#[ cfg( feature = "proto-sixlowpan-fragmentation" ) ]
1087
- if let Err ( _e) = inner. dispatch_ip ( _t, response, Some ( _out_packets) ) {
1088
- net_debug ! ( "failed to dispatch IP: {}" , _e) ;
1087
+ if let Err ( e) = inner. dispatch_ip ( _t, response, Some ( _out_packets) ) {
1088
+ net_debug ! ( "failed to dispatch IP: {}" , e) ;
1089
+ return Err ( e) ;
1089
1090
}
1090
1091
1091
1092
#[ cfg( not( feature = "proto-sixlowpan-fragmentation" ) ) ]
1092
- if let Err ( _e) = inner. dispatch_ip ( _t, response, None ) {
1093
- net_debug ! ( "failed to dispatch IP: {}" , _e) ;
1093
+ if let Err ( e) = inner. dispatch_ip ( _t, response, None ) {
1094
+ net_debug ! ( "failed to dispatch IP: {}" , e) ;
1095
+ return Err ( e) ;
1094
1096
}
1095
1097
emitted_any = true ;
1096
1098
}
1097
1099
Err ( e) => {
1098
1100
net_debug ! ( "failed to transmit IP: {}" , e) ;
1101
+ return Err ( e) ;
1099
1102
}
1100
1103
}
1101
1104
You can’t perform that action at this time.
0 commit comments