| 215 | } |
| 216 | |
| 217 | int Explore::stop_stream () |
| 218 | { |
| 219 | if (keep_alive) |
| 220 | { |
| 221 | keep_alive = false; |
| 222 | streaming_thread.join (); |
| 223 | state = (int)BrainFlowExitCodes::SYNC_TIMEOUT_ERROR; |
| 224 | last_eeg_timestamp = -1.0; |
| 225 | return bluetooth_close_device (); |
| 226 | } |
| 227 | else |
| 228 | { |
| 229 | return (int)BrainFlowExitCodes::STREAM_THREAD_IS_NOT_RUNNING; |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | int Explore::release_session () |
| 234 | { |
nothing calls this directly
no test coverage detected