2424#include " DeviceManager.h"
2525#include " Receiver.h"
2626#include " util/log.h"
27- #include " util/workqueue.h"
2827#include " backend/hidpp10/Error.h"
2928#include " backend/Error.h"
3029
@@ -44,7 +43,7 @@ namespace logid {
4443DeviceManager::DeviceManager (std::shared_ptr<Configuration> config,
4544 std::shared_ptr<InputDevice> virtual_input,
4645 std::shared_ptr<ipcgull::server> server) :
47- backend::raw::DeviceMonitor(config->workers.value_or(defaults::worker_count) ),
46+ backend::raw::DeviceMonitor(),
4847 _server (std::move(server)), _config (std::move(config)),
4948 _virtual_input (std::move(virtual_input)),
5049 _root_node (ipcgull::node::make_root(" " )),
@@ -96,8 +95,7 @@ void DeviceManager::addDevice(std::string path)
9695 // Check if device is ignored before continuing
9796 {
9897 raw::RawDevice raw_dev (
99- path,config ()->io_timeout .value_or (defaults::io_timeout),
100- workQueue ());
98+ path,config ()->io_timeout .value_or (defaults::io_timeout));
10199 if (config ()->ignore .has_value () &&
102100 config ()->ignore .value ().contains (raw_dev.productId ())) {
103101 logPrintf (DEBUG, " %s: Device 0x%04x ignored." ,
@@ -109,8 +107,7 @@ void DeviceManager::addDevice(std::string path)
109107 try {
110108 hidpp::Device device (
111109 path, hidpp::DefaultDevice,
112- config ()->io_timeout .value_or (defaults::io_timeout),
113- workQueue ());
110+ config ()->io_timeout .value_or (defaults::io_timeout));
114111 isReceiver = device.version () == std::make_tuple (1 , 0 );
115112 } catch (hidpp10::Error &e) {
116113 if (e.code () != hidpp10::Error::UnknownDevice)
0 commit comments