[EFL][WK2] Add RunLoopEfl and WorkQueueEfl
[WebKit-https.git] / Source / WebKit2 / Platform / CoreIPC / unix / ConnectionUnix.cpp
index d54aff882b5d7532921e00848139fa92dfcc9920..7cb1f327801c01e01c05c35ccab6a96aaa278c67 100644 (file)
@@ -153,6 +153,10 @@ void Connection::platformInvalidate()
     m_socketNotifier = 0;
 #endif
 
+#if PLATFORM(EFL)
+    m_connectionQueue.unregisterSocketEventHandler(m_socketDescriptor);
+#endif
+
     m_socketDescriptor = -1;
     m_isConnected = false;
 }
@@ -423,6 +427,8 @@ bool Connection::open()
 #elif PLATFORM(GTK)
     m_connectionQueue.registerEventSourceHandler(m_socketDescriptor, (G_IO_HUP | G_IO_ERR), bind(&Connection::connectionDidClose, this));
     m_connectionQueue.registerEventSourceHandler(m_socketDescriptor, G_IO_IN, bind(&Connection::readyReadHandler, this));
+#elif PLATFORM(EFL)
+    m_connectionQueue.registerSocketEventHandler(m_socketDescriptor, bind(&Connection::readyReadHandler, this));
 #endif
 
     // Schedule a call to readyReadHandler. Data may have arrived before installation of the signal