Catch exception on decode
parent
5a764293fc
commit
a2237c8d0b
|
@ -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);
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue