[hotssh] tab: Don't send size request if we are disconnected



commit 8ad410e1e5f809386653898c7c69a72b71e8e97c
Author: Colin Walters <walters verbum org>
Date:   Sun Mar 9 18:15:47 2014 -0400

    tab: Don't send size request if we are disconnected

 src/hotssh-tab.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/hotssh-tab.c b/src/hotssh-tab.c
index af4db51..d0fdaf5 100644
--- a/src/hotssh-tab.c
+++ b/src/hotssh-tab.c
@@ -878,6 +878,9 @@ send_pty_size_request (HotSshTab             *self)
 {
   HotSshTabPrivate *priv = hotssh_tab_get_instance_private (self);
 
+  if (!priv->connection)
+    return;
+
   if (priv->queued_pty_size_id > 0)
     return;
   


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]