| 337 | } |
| 338 | |
| 339 | int Galea::release_session () |
| 340 | { |
| 341 | if (initialized) |
| 342 | { |
| 343 | if (is_streaming) |
| 344 | { |
| 345 | stop_stream (); |
| 346 | } |
| 347 | free_packages (); |
| 348 | initialized = false; |
| 349 | if (socket) |
| 350 | { |
| 351 | socket->close (); |
| 352 | delete socket; |
| 353 | socket = NULL; |
| 354 | } |
| 355 | } |
| 356 | return (int)BrainFlowExitCodes::STATUS_OK; |
| 357 | } |
| 358 | |
| 359 | void Galea::read_thread () |
| 360 | { |
nothing calls this directly
no test coverage detected