Skip to content

Commit

Permalink
Fix bug when stopping streaming
Browse files Browse the repository at this point in the history
  • Loading branch information
retiutut committed Aug 16, 2023
1 parent b58bef2 commit 3f9c76b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OpenBCI_GUI/BoardBrainflow.pde
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,11 @@ abstract class BoardBrainFlow extends Board {
catch (BrainFlowError e) {
outputError("ERROR: Exception when stopping stream. Please restart the Board and Session.");
e.printStackTrace();
//If we can not stop streaming, there is a serious problem with communications. Go ahead and stop trying to collect data.
//If no data was received in X seconds, there is a serious problem with communications. Go ahead and stop trying to collect data.
//Prevents feedback loop of errors.
streaming = false;
if (data_popup_displayed) {
streaming = false;
}
}

if (eegDataSource != DATASOURCE_PLAYBACKFILE && eegDataSource != DATASOURCE_STREAMING) {
Expand Down

0 comments on commit 3f9c76b

Please sign in to comment.