Quit spotify blob if it gets disconnected.
This commit is contained in:
parent
f246e44b92
commit
6a10d2a3dc
@ -25,6 +25,7 @@
|
|||||||
#include "spotifymessages.pb.h"
|
#include "spotifymessages.pb.h"
|
||||||
#include "core/logging.h"
|
#include "core/logging.h"
|
||||||
|
|
||||||
|
#include <QCoreApplication>
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QHostAddress>
|
#include <QHostAddress>
|
||||||
#include <QTcpSocket>
|
#include <QTcpSocket>
|
||||||
@ -80,6 +81,8 @@ SpotifyClient::SpotifyClient(QObject* parent)
|
|||||||
|
|
||||||
connect(handler_, SIGNAL(MessageArrived(protobuf::SpotifyMessage)),
|
connect(handler_, SIGNAL(MessageArrived(protobuf::SpotifyMessage)),
|
||||||
SLOT(HandleMessage(protobuf::SpotifyMessage)));
|
SLOT(HandleMessage(protobuf::SpotifyMessage)));
|
||||||
|
connect(protocol_socket_, SIGNAL(disconnected()),
|
||||||
|
QCoreApplication::instance(), SLOT(quit()));
|
||||||
}
|
}
|
||||||
|
|
||||||
SpotifyClient::~SpotifyClient() {
|
SpotifyClient::~SpotifyClient() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user