MCPcopy Create free account
hub / github.com/apenwarr/sshuttle / _disconnect

Method _disconnect

ui-macos/main.py:185–193  ·  view source on GitHub ↗
(self, server)

Source from the content-addressed store, hash-verified

183 self.conns[host] = conn
184
185 def _disconnect(self, server):
186 host = server.host()
187 print 'disconnecting %r' % host
188 conn = self.conns.get(host)
189 if conn:
190 conn.kill()
191 self.fill_menu()
192 self.logField.textStorage().setAttributedString_(
193 NSAttributedString.alloc().initWithString_(''))
194
195 @objc.IBAction
196 def cmd_connect(self, sender):

Callers 1

scMethod · 0.95

Calls 3

fill_menuMethod · 0.95
hostMethod · 0.80
killMethod · 0.45

Tested by

no test coverage detected