mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Remove duplicate CVoiceVatlib object.
Move the one in Client into its own thread instead refs #226
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <QObject>
|
||||
#include <functional>
|
||||
#include <QMap>
|
||||
#include <QThread>
|
||||
|
||||
class Client : public QObject
|
||||
{
|
||||
@@ -18,6 +19,7 @@ class Client : public QObject
|
||||
|
||||
public:
|
||||
Client(QObject *parent = nullptr);
|
||||
~Client() { if(m_voice) m_voice->deleteLater(); }
|
||||
|
||||
signals:
|
||||
void quit();
|
||||
@@ -56,6 +58,7 @@ private slots:
|
||||
private:
|
||||
QMap<QString, std::function<void(QTextStream &)>> m_commands;
|
||||
BlackCore::IVoice *m_voice;
|
||||
QThread m_threadVoice;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user