mirror of https://github.com/OpenVidu/openvidu.git
openvidu-server: no more sintactic sugar
parent
4b3b3780be
commit
fc5a53ce91
|
@ -75,7 +75,7 @@ public class RpcNotificationService {
|
||||||
try {
|
try {
|
||||||
t.sendResponse(result);
|
t.sendResponse(result);
|
||||||
} catch (KurentoException e) {
|
} catch (KurentoException e) {
|
||||||
if (e.getCause().getClass().equals(java.lang.IllegalStateException.class)) {
|
if (e.getCause() instanceof IllegalStateException) {
|
||||||
log.warn("Response couldn't be sent to participant with privateId {}: {}", participantPrivateId,
|
log.warn("Response couldn't be sent to participant with privateId {}: {}", participantPrivateId,
|
||||||
e.getCause().getMessage());
|
e.getCause().getMessage());
|
||||||
} else {
|
} else {
|
||||||
|
@ -118,7 +118,7 @@ public class RpcNotificationService {
|
||||||
try {
|
try {
|
||||||
s.sendNotification(method, params);
|
s.sendNotification(method, params);
|
||||||
} catch (KurentoException e) {
|
} catch (KurentoException e) {
|
||||||
if (e.getCause().getClass().equals(java.lang.IllegalStateException.class)) {
|
if (e.getCause() instanceof IllegalStateException) {
|
||||||
log.warn("Notification '{}' couldn't be sent to participant with privateId {}: {}", method,
|
log.warn("Notification '{}' couldn't be sent to participant with privateId {}: {}", method,
|
||||||
participantPrivateId, e.getCause().getMessage());
|
participantPrivateId, e.getCause().getMessage());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue