Browse Source

CSocket: Also call on_connected for local socket connections

Robin Burchell 6 years ago
parent
commit
e922db68d8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Libraries/LibCore/CSocket.cpp

+ 2 - 0
Libraries/LibCore/CSocket.cpp

@@ -92,6 +92,8 @@ bool CSocket::connect(const CSocketAddress& address)
     }
 
     m_connected = true;
+    if (on_connected)
+        on_connected();
     return true;
 }