Skip to content

Commit

Permalink
Synchronization to protect against problems while analyzing Ansi code…
Browse files Browse the repository at this point in the history
…s resulting from multithreading

Fixes #110
  • Loading branch information
slachiewicz authored and hboutemy committed Feb 28, 2018
1 parent 0645365 commit e45e466
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public AnsiPrintStream(PrintStream ps) { // expected diff with AnsiOutputStream.
private static final int SECOND_CHARSET1_CHAR = ')';

@Override
protected boolean filter(int data) { // expected diff with AnsiOutputStream.java
protected synchronized boolean filter(int data) { // expected diff with AnsiOutputStream.java
switch (state) {
case LOOKING_FOR_FIRST_ESC_CHAR:
if (data == FIRST_ESC_CHAR) {
Expand Down

0 comments on commit e45e466

Please sign in to comment.