Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

close sockets before removing them, just in case

this should happen automatically when we clear the socket, but maybe
we're leaking sockets somewhere? shrug
  • Loading branch information...
commit 725b6c7903c80018c39368e2fa72dfd92c2cc85a 1 parent c7ff199
Jesse Luehrs authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  lib/App/Termcast.pm
1  lib/App/Termcast.pm
@@ -232,6 +232,7 @@ sub _build_socket {
232 232
 before clear_socket => sub {
233 233
     my $self = shift;
234 234
     Carp::carp("Lost connection to server ($!), reconnecting...");
  235
+    $self->socket->close;
235 236
     ReadMode(0, $self->input)
236 237
         if $self->_has_term && $self->_term->_raw_mode;
237 238
 };

0 notes on commit 725b6c7

Please sign in to comment.
Something went wrong with that request. Please try again.