Beispiel #1
0
def killall():
    global proxies

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

    proxies = []
def killall():
    global proxies

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

    proxies = []
Beispiel #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'
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'