aboutsummaryrefslogtreecommitdiff
path: root/remote_plot.c
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-04-29 15:24:11 -0700
committerXiao Pan <xyz@flylightning.xyz>2025-04-29 15:24:11 -0700
commit15854b83aeed2ca9dab055d68b02f487ce39f765 (patch)
tree5563689c1ae9b3f6cac3d591750cb351b151f878 /remote_plot.c
parent6bb3f552f0572057dd307c967251e2a0841f3530 (diff)
better error handling
Diffstat (limited to 'remote_plot.c')
-rw-r--r--remote_plot.c2
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");
}