[adas] 增强代码健壮性
This commit is contained in:
@@ -365,7 +365,7 @@ public class FpgaSocket implements IWebSocket {
|
||||
* @param isInitiative 是否是主动断开
|
||||
* @param code code
|
||||
*/
|
||||
private void close(boolean isInitiative, int code) {
|
||||
private synchronized void close(boolean isInitiative, int code) {
|
||||
isConnected.set(false);
|
||||
if (mWebSocket != null) {
|
||||
String closeReason = null;
|
||||
|
||||
Reference in New Issue
Block a user