2019-08-10 01:04:56 +00:00
|
|
|
import netcontroller
|
2020-02-03 01:07:48 +00:00
|
|
|
import config
|
|
|
|
|
2019-08-10 01:04:56 +00:00
|
|
|
def restart(comm_inst):
|
2020-02-03 01:07:48 +00:00
|
|
|
if not config.get('tor.use_existing_tor', False):
|
|
|
|
net = comm_inst.shared_state.get(netcontroller.NetController)
|
|
|
|
net.killTor()
|
|
|
|
net.startTor()
|