1
This commit is contained in:
@@ -99,7 +99,6 @@ public class SseHubService {
|
|||||||
try {
|
try {
|
||||||
ClientDevice device = clientDeviceMapper.selectByDeviceId(deviceId);
|
ClientDevice device = clientDeviceMapper.selectByDeviceId(deviceId);
|
||||||
if (device != null) {
|
if (device != null) {
|
||||||
// 如果设备被移除,断开SSE连接
|
|
||||||
if ("removed".equals(status)) {
|
if ("removed".equals(status)) {
|
||||||
disconnectDevice(device.getUsername(), deviceId);
|
disconnectDevice(device.getUsername(), deviceId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user