From cf80b1b4392b849cb5529c1a40083170098f6460 Mon Sep 17 00:00:00 2001 From: Zoffix Znet Date: Thu, 28 Jul 2016 22:52:25 -0400 Subject: Docs --- lib/IRC/Client.pm6 | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/IRC/Client.pm6 b/lib/IRC/Client.pm6 index 4055f1b..44393f3 100644 --- a/lib/IRC/Client.pm6 +++ b/lib/IRC/Client.pm6 @@ -158,6 +158,7 @@ method !connect-socket ($server) { $!debug and debug-print 'Attempting to connect to server', :out, :$server; IO::Socket::Async.connect($server.host, $server.port).then: sub ($prom) { if $prom.status ~~ Broken { + $server.is-connected = False; $!debug and debug-print 'Could not connect', :out, :$server; sleep 5; $!socket-pipe.send: $server; @@ -188,6 +189,7 @@ method !connect-socket ($server) { } unless $server.has-quit { + $server.is-connected = False; $!debug and debug-print "Connection closed", :in, :$server; sleep 5; } -- cgit v1.1