mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
Net-client: remove unneeded synchronization block
This commit is contained in:
@@ -621,10 +621,9 @@ public class Client implements Runnable {
|
||||
* @brief Returns the buffer as a String
|
||||
*/
|
||||
public String readString() {
|
||||
synchronized (bufferLock) {
|
||||
if (bufferIndex == bufferLast) return null;
|
||||
return new String(readBytes());
|
||||
}
|
||||
byte b[] = readBytes();
|
||||
if (b == null) return null;
|
||||
return new String(b);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user