Skip to content

Commit

Permalink
remove invalid notification
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed May 26, 2024
1 parent 92e0faf commit d45c5a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/ebus/transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ result_t FileTransport::open() {
} else {
result = openInternal();
}
if (m_listener != nullptr) {
result = m_listener->notifyTransportStatus(result == RESULT_OK);
if (m_listener != nullptr && result == RESULT_OK) {
result = m_listener->notifyTransportStatus(true);
}
if (result != RESULT_OK) {
close();
Expand Down

0 comments on commit d45c5a7

Please sign in to comment.