Commit d891c097 authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

remove unused arg callback

parent b1bf38f3
......@@ -46,7 +46,7 @@ proc stop() =
if getServStatus("anonsurfd") != 0:
callback_msg_proc("AnonSurf Status", "AnonSurf is not running. Can't stop it", 2)
return
ansurf_acts_handle_stop(sudo, callback_kill_apps, callback_msg_proc)
ansurf_acts_handle_stop(sudo, callback_msg_proc)
if getServStatus("anonsurfd") == 3: # status 3 == not running
callback_kill_apps(callback_msg_proc)
......
......@@ -36,7 +36,7 @@ proc ansurf_acts_handle_start*(sudo: string, callback_send_messages: proc) =
callback_send_messages("AnonSurf Start", "AnonSurf failed to start", 2)
proc ansurf_acts_handle_stop*(sudo: string, callback_kill_apps, callback_send_messages: proc) =
proc ansurf_acts_handle_stop*(sudo: string, callback_send_messages: proc) =
let stop_status = ansurf_core_stop(sudo)
if stop_status == 0:
callback_send_messages("AnonSurf Stop", "AnonSurf stopped", 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment