|
|
@@ -630,7 +630,11 @@ public class LocalMediaServerItemService extends GenericReactiveCrudService<Medi
|
|
|
* @return
|
|
|
*/
|
|
|
public Mono<Void> updateMediaServerKeepalive(String mediaServerId, JSONObject data) {
|
|
|
- return this.findById(mediaServerId)
|
|
|
+ return this.createUpdate()
|
|
|
+ .where(MediaServerItem::getServerId,mediaServerId)
|
|
|
+ .set(MediaServerItem::isConnect,true)
|
|
|
+ .execute()
|
|
|
+ .flatMap(ignore->this.findById(mediaServerId))
|
|
|
.doOnNext(mediaServerItem -> {
|
|
|
String key = VideoManagerConstants.MEDIA_SERVER_KEEPALIVE_PREFIX +serverId + "_" + mediaServerId;
|
|
|
int hookAliveInterval = mediaServerItem.getHookAliveInterval() + 2;
|