commit
bf89313138
|
@ -173,7 +173,7 @@ class URLHandler(Plugin):
|
||||||
|
|
||||||
def unload(self):
|
def unload(self):
|
||||||
"""Handle being removed"""
|
"""Handle being removed"""
|
||||||
if not self.match:
|
if not self.handler_name:
|
||||||
err('unload called without self.handler_name being set')
|
err('unload called without self.handler_name being set')
|
||||||
return
|
return
|
||||||
terminator = Terminator()
|
terminator = Terminator()
|
||||||
|
|
|
@ -275,6 +275,7 @@ class Terminal(Gtk.VBox):
|
||||||
dbg('close: called')
|
dbg('close: called')
|
||||||
self.cnxids.remove_widget(self.vte)
|
self.cnxids.remove_widget(self.vte)
|
||||||
self.emit('close-term')
|
self.emit('close-term')
|
||||||
|
if self.pid is not None:
|
||||||
try:
|
try:
|
||||||
dbg('close: killing %d' % self.pid)
|
dbg('close: killing %d' % self.pid)
|
||||||
os.kill(self.pid, signal.SIGHUP)
|
os.kill(self.pid, signal.SIGHUP)
|
||||||
|
|
Loading…
Reference in New Issue