diff options
author | Xiao Pan <xyz@flylightning.xyz> | 2025-04-29 15:24:11 -0700 |
---|---|---|
committer | Xiao Pan <xyz@flylightning.xyz> | 2025-04-29 15:24:11 -0700 |
commit | 15854b83aeed2ca9dab055d68b02f487ce39f765 (patch) | |
tree | 5563689c1ae9b3f6cac3d591750cb351b151f878 /remote_plot.c | |
parent | 6bb3f552f0572057dd307c967251e2a0841f3530 (diff) |
better error handling
Diffstat (limited to 'remote_plot.c')
-rw-r--r-- | remote_plot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/remote_plot.c b/remote_plot.c index 201b49c..443747a 100644 --- a/remote_plot.c +++ b/remote_plot.c @@ -261,7 +261,7 @@ static gboolean sftp_read_sync(gpointer user_data) if(AddItem(temp,&(data->cans))==false) { fprintf(stderr,"Problem allocating memory\n"); - break; + return G_SOURCE_REMOVE; } //printf("after AddItem\n"); } |