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",
|
||||
"PMD.AvoidDuplicateLiterals" })
|
||||
public void onClosed(Closed<?> event, SocketIOChannel channel) {
|
||||
logger.finer(() -> "Closing QMP socket.");
|
||||
super.onClosed(event, channel);
|
||||
logger.finer(() -> "QMP socket closed.");
|
||||
monitorReady = false;
|
||||
channel.associated(this, getClass()).ifPresent(qm -> {
|
||||
synchronized (this) {
|
||||
if (powerdownTimer != null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue