Skip to content

Commit f9dd7d8

Browse files
author
azertyfun
committed
Attempt to fix a concorrency exception
Follow-up on a1cae18
1 parent a1cae18 commit f9dd7d8

File tree

1 file changed

+1
-1
lines changed
  • src/tk/azertyfun/dcputoolchain/emulator

1 file changed

+1
-1
lines changed

src/tk/azertyfun/dcputoolchain/emulator/DCPU.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public void tick() {
391391
}
392392
}
393393

394-
public void interrupt(char a) {
394+
public synchronized void interrupt(char a) {
395395
interrupts.add(a);
396396
if(interrupts.size() > MAX_QUEUE_SIZE) { //Woops, overflowed the interrupt queue - catching fire (insert evil laugh here)
397397
interrupts.removeLast();

0 commit comments

Comments
 (0)