Skip to content

Commit a2e3b83

Browse files
committed
Fixed a possible exception in shutdown/cleanup
For #422
1 parent 7c782c6 commit a2e3b83

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/traffic_shaping.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def remove(self):
579579
if self.interface:
580580
subprocess.call(['sudo', 'tc', 'qdisc', 'del', 'dev', self.interface,
581581
'ingress'])
582-
if self.in_interface.startswith('ifb'):
582+
if self.in_interface is not None and self.in_interface.startswith('ifb'):
583583
subprocess.call(['sudo', 'ip', 'link', 'set', 'dev', 'ifb0', 'down'])
584584
return True
585585

0 commit comments

Comments
 (0)