Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #105 from NordicSemiconductor/fix/state-check-and-…
Browse files Browse the repository at this point in the history
…cleanup-transports

Write to cerr before terminating
  • Loading branch information
kenr authored May 23, 2018
2 parents 253bd54 + f566ce3 commit c2674d1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/common/transport/h5_transport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
| 15 | SLEEP MESSAGE | 0x07 0x78
*/

#include <iostream>

#include "h5_transport.h"
#include "sd_rpc_types.h"
#include "nrf_error.h"
Expand Down Expand Up @@ -655,6 +657,7 @@ void H5Transport::startStateMachine()
else
{
// Terminate if the state machine already exists, this should not happen.
std::cerr << __FILE__ << ":" << __LINE__ << " stateMachineThread exists, this should not happen. Terminating." << std::endl;
std::terminate();
}
}
Expand Down

0 comments on commit c2674d1

Please sign in to comment.