Skip to content

Commit

Permalink
remove unnecessary connected check
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Gehorsam committed Nov 17, 2023
1 parent fffdfa4 commit 392fe51
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/core-rt/NRtClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,6 @@ std::future<void> NRtClient::connectAsync(NSessionPtr session, bool createStatus
// stomp the old promise
_connectPromise = std::make_unique<std::promise<void>>();

// already connected
if (_transport->isConnected()) {

_connectPromise->set_value();
return _connectPromise->get_future();
}

connect(session, createStatus, protocol);

return _connectPromise->get_future();
Expand Down

0 comments on commit 392fe51

Please sign in to comment.