Skip to content

Commit fba514a

Browse files
author
Matthew Hansen
committed
Start state machine after connecting start() signal
1 parent b01b234 commit fba514a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nav2_rviz_plugins/src/nav2_panel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ Nav2Panel::Nav2Panel(QWidget * parent)
159159
state_machine_.addState(resumed_);
160160

161161
state_machine_.setInitialState(pre_initial_);
162-
state_machine_.start();
163162

164163
// delay starting initial thread until state machine has started or a race occurs
165164
QObject::connect(&state_machine_, SIGNAL(started()), this, SLOT(startThread()));
165+
state_machine_.start();
166166

167167
// Lay out the items in the panel
168168
QVBoxLayout * main_layout = new QVBoxLayout;

0 commit comments

Comments
 (0)