face: replace EventEmitter usage with Signal
refs #2300
Change-Id: I17d0d65d2c474b17dd9f23f271a6144b0b4fbc07
diff --git a/daemon/face/ethernet-factory.cpp b/daemon/face/ethernet-factory.cpp
index a4579f4..d07efa4 100644
--- a/daemon/face/ethernet-factory.cpp
+++ b/daemon/face/ethernet-factory.cpp
@@ -48,9 +48,9 @@
face = make_shared<EthernetFace>(socket, interface, address);
auto key = std::make_pair(interface.name, address);
- face->onFail += [this, key] (const std::string& reason) {
+ face->onFail.connectSingleShot([this, key] (const std::string& reason) {
m_multicastFaces.erase(key);
- };
+ });
m_multicastFaces.insert({key, face});
return face;