Track connection closing.
This commit is contained in:
parent
36877666f3
commit
2a33f468f2
1 changed files with 2 additions and 1 deletions
|
|
@ -139,8 +139,9 @@ public class QemuMonitor extends QemuConnector {
|
||||||
@SuppressWarnings({ "PMD.AvoidSynchronizedStatement",
|
@SuppressWarnings({ "PMD.AvoidSynchronizedStatement",
|
||||||
"PMD.AvoidDuplicateLiterals" })
|
"PMD.AvoidDuplicateLiterals" })
|
||||||
public void onClosed(Closed<?> event, SocketIOChannel channel) {
|
public void onClosed(Closed<?> event, SocketIOChannel channel) {
|
||||||
logger.finer(() -> "Closing QMP socket.");
|
|
||||||
super.onClosed(event, channel);
|
super.onClosed(event, channel);
|
||||||
|
logger.finer(() -> "QMP socket closed.");
|
||||||
|
monitorReady = false;
|
||||||
channel.associated(this, getClass()).ifPresent(qm -> {
|
channel.associated(this, getClass()).ifPresent(qm -> {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
if (powerdownTimer != null) {
|
if (powerdownTimer != null) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue