summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Burchell <robin+git@viroteck.net>2019-07-16 13:17:23 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-16 13:18:37 +0200
commite922db68d8ef5c3af00252da4b8e92b77ac0f6ad (patch)
treee0db627dd4c86c7a6aad80ac292ed1c78e51cc77
parent14b2f9092027b47f665e1e6a87998967b8001efb (diff)
downloadserenity-e922db68d8ef5c3af00252da4b8e92b77ac0f6ad.zip
CSocket: Also call on_connected for local socket connections
-rw-r--r--Libraries/LibCore/CSocket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibCore/CSocket.cpp b/Libraries/LibCore/CSocket.cpp
index ff424ea7a7..1768fa6255 100644
--- a/Libraries/LibCore/CSocket.cpp
+++ b/Libraries/LibCore/CSocket.cpp
@@ -92,6 +92,8 @@ bool CSocket::connect(const CSocketAddress& address)
}
m_connected = true;
+ if (on_connected)
+ on_connected();
return true;
}