Catch exception on decode

main
Jurij Podgoršek 2024-09-06 18:20:27 +02:00
parent 5a764293fc
commit a2237c8d0b
1 changed files with 6 additions and 1 deletions

View File

@ -184,7 +184,12 @@ SLIPDecoder {
//3.wait;
if (buffer.isEmpty.not, {
this.traceMsg("decode!", buffer);
this.decode(buffer);
try {
this.decode(buffer);
} { |error|
"Decode failed".postln;
error.postln;
};
buffer = Int8Array(maxSize: bufferSize);
});
},