summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2009-06-26 20:46:55 -0500
committerJesse Luehrs <doy@tozt.net>2009-06-26 20:46:55 -0500
commit35ccc93e9f24ad7ef0e09a5cac20aa838be856b3 (patch)
tree34206b9b0cb7802867cac6d2867f3aa4ea0e77c1
parent1df6d3f9d3a636fdd9037c2d021456400b72bc30 (diff)
downloadnet-termcast-35ccc93e9f24ad7ef0e09a5cac20aa838be856b3.tar.gz
net-termcast-35ccc93e9f24ad7ef0e09a5cac20aa838be856b3.zip
this is a method now
-rw-r--r--lib/Net/Termcast.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/Termcast.pm b/lib/Net/Termcast.pm
index 474a32f..1152749 100644
--- a/lib/Net/Termcast.pm
+++ b/lib/Net/Termcast.pm
@@ -106,7 +106,7 @@ sub refresh_menu {
sub select_session {
my $self = shift;
my ($session) = @_;
- return unless exists $self->sessions->{$session};
+ return unless $self->session($session);
$self->_sock->send('q', 0) unless $self->location eq 'menu';
$self->_sock->send($session, 0);
$self->_get_screen;