()
| 137 | print("Requested config change") |
| 138 | |
| 139 | def update(): |
| 140 | now = time.time() |
| 141 | global last_session_key_req, last_set_config, session_key |
| 142 | if session_key is None and now - last_session_key_req > args.timeout+1: |
| 143 | last_session_key_req = now |
| 144 | request_session_key() |
| 145 | if session_key is not None and now - last_set_config > args.timeout+1: |
| 146 | last_set_config = now |
| 147 | send_config_change() |
| 148 | |
| 149 | while True: |
| 150 | try: |
no test coverage detected