diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-03-15 17:34:48 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-03-15 17:34:48 -0500 |
commit | c7ff199e9406b2ac55bae9dadd6e595f14aec1b2 (patch) | |
tree | 54c750be9ec067da52d62d458c902205cb79fdb3 | |
parent | f8d3ee7be4cda9bbd52c506536696f06891c9862 (diff) | |
download | app-termcast-c7ff199e9406b2ac55bae9dadd6e595f14aec1b2.tar.gz app-termcast-c7ff199e9406b2ac55bae9dadd6e595f14aec1b2.zip |
remove dead sockets from the select loop
-rw-r--r-- | lib/App/Termcast.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/App/Termcast.pm b/lib/App/Termcast.pm index 778bb81..091210e 100644 --- a/lib/App/Termcast.pm +++ b/lib/App/Termcast.pm @@ -238,8 +238,9 @@ before clear_socket => sub { sub _new_socket { my $self = shift; + $self->_term->remove_input_handle($self->socket); $self->clear_socket; - $self->socket; + $self->_term->add_input_handle($self->socket); } has _needs_termsize_update => ( |