Skip to content

Commit

Permalink
Remove startup/shutdown call for TcpServer (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-bc authored Oct 24, 2023
1 parent 9bb39c1 commit 4fc88dc
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ void setupTopology(const TopologyState& state) {
Os::TaskString name("ReceiveTask");
// Uplink is configured for receive so a socket task is started
comDriver.configure(state.hostname, state.port);
{%- if (cookiecutter.com_driver_type == "TcpServer") %}
comDriver.startup();
{%- endif %}
comDriver.startSocketTask(name, true, COMM_PRIORITY, Default::STACK_SIZE);
}
{%- elif cookiecutter.com_driver_type == "UART" %}
Expand Down Expand Up @@ -212,9 +209,6 @@ void teardownTopology(const TopologyState& state) {
comDriver.quitReadThread();
(void)comDriver.join(nullptr);
{%- else %}
{%- if (cookiecutter.com_driver_type == "TcpServer") %}
comDriver.shutdown();
{%- endif %}
comDriver.stopSocketTask();
(void)comDriver.joinSocketTask(nullptr);
{%- endif %}
Expand Down

0 comments on commit 4fc88dc

Please sign in to comment.