| 83 | } |
| 84 | |
| 85 | int KnightBase::stop_stream () |
| 86 | { |
| 87 | if (is_streaming) |
| 88 | { |
| 89 | keep_alive = false; |
| 90 | is_streaming = false; |
| 91 | if (streaming_thread.joinable ()) |
| 92 | { |
| 93 | streaming_thread.join (); |
| 94 | } |
| 95 | return (int)BrainFlowExitCodes::STATUS_OK; |
| 96 | } |
| 97 | else |
| 98 | { |
| 99 | return (int)BrainFlowExitCodes::STREAM_THREAD_IS_NOT_RUNNING; |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | int KnightBase::release_session () |
| 104 | { |
nothing calls this directly
no outgoing calls
no test coverage detected