Skip to content

Commit 37707d6

Browse files
committed
Fix refresh problem.
1 parent 6d211f2 commit 37707d6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

SerialPrograms/Source/Controllers/ControllerSession.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,8 @@ bool ControllerSession::set_controller(ControllerType controller_type){
265265

266266

267267
std::string ControllerSession::reset(){
268+
// cout << "ControllerSession::reset()" << endl;
269+
268270
{
269271
std::lock_guard<std::mutex> lg0(m_reset_lock);
270272

@@ -276,9 +278,10 @@ std::string ControllerSession::reset(){
276278
if (m_options_locked){
277279
return "Options are locked.";
278280
}
279-
if (!m_connection){
280-
return "No connection set.";
281-
}
281+
// if (!m_connection){
282+
// cout << "ControllerSession::reset() - early return" << endl;
283+
// return "No connection set.";
284+
// }
282285

283286
// Move these out to indicate that we should no longer access them.
284287
controller = std::move(m_controller);

0 commit comments

Comments
 (0)