diff options
Diffstat (limited to 'Libraries/LibTLS/Socket.cpp')
-rw-r--r-- | Libraries/LibTLS/Socket.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Libraries/LibTLS/Socket.cpp b/Libraries/LibTLS/Socket.cpp index 6b0488104d..1662d75abf 100644 --- a/Libraries/LibTLS/Socket.cpp +++ b/Libraries/LibTLS/Socket.cpp @@ -142,7 +142,8 @@ bool TLSv12::common_connect(const struct sockaddr* saddr, socklen_t length) if (on_tls_ready_to_read) on_tls_ready_to_read(*this); }; - Core::Socket::on_ready_to_write = [this] { + m_write_notifier = Core::Notifier::construct(fd(), Core::Notifier::Event::Write); + m_write_notifier->on_ready_to_write = [this] { if (!Core::Socket::is_open() || !Core::Socket::is_connected() || Core::Socket::eof()) { // an abrupt closure (the server is a jerk) dbg() << "Socket not open, assuming abrupt closure"; |