mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
code cleanup
This commit is contained in:
parent
1444008479
commit
39672fedb4
@ -272,14 +272,14 @@ function coordinator.comms(version, modem, sv_port, sv_listen, api_listen, sv_wa
|
|||||||
end
|
end
|
||||||
elseif event == "terminate" then
|
elseif event == "terminate" then
|
||||||
terminated = true
|
terminated = true
|
||||||
task_done(false)
|
|
||||||
coordinator.log_comms("supervisor connection attempt cancelled by user")
|
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if not terminated then
|
task_done(self.sv_linked)
|
||||||
task_done(self.sv_linked)
|
|
||||||
|
if terminated then
|
||||||
|
coordinator.log_comms("supervisor connection attempt cancelled by user")
|
||||||
end
|
end
|
||||||
|
|
||||||
return self.sv_linked
|
return self.sv_linked
|
||||||
|
Loading…
Reference in New Issue
Block a user