diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-04-09 14:41:00 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-04-09 14:41:00 -0700 |
commit | 95359a0f53a01de261b63d3769323df0b0127171 (patch) | |
tree | e9feef242597da529a6738d08a2aa38cc2adce11 /remote_plot.c | |
parent | ebfb59bc4733a8a934e97c51a46053284d9b5716 (diff) |
temporary not return ssh error code, not sure how to deal with it, now only return gtk G_SOURCE_REMOVE error
Diffstat (limited to 'remote_plot.c')
-rw-r--r-- | remote_plot.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/remote_plot.c b/remote_plot.c index 60930ec..4318ae3 100644 --- a/remote_plot.c +++ b/remote_plot.c @@ -66,7 +66,8 @@ static gboolean sftp_read_sync(gpointer user_data) if (file == NULL) { fprintf(stderr, "Can't open file for reading: %s\n", ssh_get_error(data->session)); - return SSH_ERROR; + //return SSH_ERROR; + return G_SOURCE_REMOVE; } for(int i=0;i<(LEN-1);i++) @@ -80,7 +81,8 @@ static gboolean sftp_read_sync(gpointer user_data) fprintf(stderr, "Error while reading file: %s\n", ssh_get_error(data->session)); sftp_close(file); - return SSH_ERROR; + //return SSH_ERROR; + return G_SOURCE_REMOVE; } //printf("buffer %s",buffer); @@ -96,7 +98,8 @@ static gboolean sftp_read_sync(gpointer user_data) if (rc != SSH_OK) { fprintf(stderr, "Can't close the read file: %s\n", ssh_get_error(data->session)); - return rc; + //return rc; + return G_SOURCE_REMOVE; } for(int i=0;i<LEN;i++) |