| 74 | } |
| 75 | |
| 76 | int Enophone::stop_stream () |
| 77 | { |
| 78 | if (keep_alive) |
| 79 | { |
| 80 | keep_alive = false; |
| 81 | streaming_thread.join (); |
| 82 | state = (int)BrainFlowExitCodes::SYNC_TIMEOUT_ERROR; |
| 83 | return bluetooth_close_device (); |
| 84 | } |
| 85 | else |
| 86 | { |
| 87 | return (int)BrainFlowExitCodes::STREAM_THREAD_IS_NOT_RUNNING; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | int Enophone::release_session () |
| 92 | { |
nothing calls this directly
no test coverage detected