Example #1
0
def killall():
    global proxies

    for p in proxies:
        apiclient.kill(conf.USER_NAME, conf.PASSWORD, p.sensor_name)
        p.stop()

    proxies = []
Example #2
0
def killall():
    global proxies

    for p in proxies:
        apiclient.kill(conf.USER_NAME, conf.PASSWORD, p.sensor_name)
        p.stop()

    proxies = []
Example #3
0
def kill(id_):
    p = proxy_by_id(id_)
    if p:
        apiclient.kill(conf.USER_NAME, conf.PASSWORD, p.sensor_name)
        p.stop()
        proxies.remove(p)

        return ''

    return 'error'
Example #4
0
def kill(id_):
    p = proxy_by_id(id_)
    if p:
        apiclient.kill(conf.USER_NAME, conf.PASSWORD, p.sensor_name)
        p.stop()
        proxies.remove(p)

        return ''

    return 'error'