MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / handle_stop_scan

Function handle_stop_scan

webapp_modern.py:14516–14523  ·  view source on GitHub ↗

Handle scan stop request via WebSocket

()

Source from the content-addressed store, hash-verified

14514
14515 results['sample_devices'].append({
14516 'ip': ip,
14517 'failed_ping_count': failed_ping_count,
14518 'alive': alive_status,
14519 'would_be_removed': failed_ping_count >= max_failed_pings if isinstance(failed_ping_count, int) else False
14520 })
14521
14522 return jsonify(results)
14523
14524 except Exception as e:
14525 logger.error(f"Error in robust tracking test: {e}")
14526 return jsonify({'error': str(e)}), 500

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected