summaryrefslogtreecommitdiff
path: root/src/perl/perl-sources.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-05-13 13:50:45 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-05-13 13:50:45 +0000
commit9c038783a4180fc80794d87c17b856157f8a5359 (patch)
treeba08893775e6d8ab7a448ed6f1efb05ddeb739a4 /src/perl/perl-sources.c
parent15eaa7cc888880ed26a682a8cfa643e67a9636e7 (diff)
downloadirssi-9c038783a4180fc80794d87c17b856157f8a5359.zip
timeout_add_once() didn't work.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2783 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/perl/perl-sources.c')
-rw-r--r--src/perl/perl-sources.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/perl/perl-sources.c b/src/perl/perl-sources.c
index 3e74a659..c4d323e6 100644
--- a/src/perl/perl-sources.c
+++ b/src/perl/perl-sources.c
@@ -108,7 +108,8 @@ int perl_timeout_add(int msecs, SV *func, SV *data, int once)
rec = g_new0(PERL_SOURCE_REC, 1);
perl_source_ref(rec);
- rec->script = script;
+ rec->once = once;
+ rec->script = script;
rec->func = perl_func_sv_inc(func, pkg);
rec->data = SvREFCNT_inc(data);
rec->tag = g_timeout_add(msecs, (GSourceFunc) perl_source_event, rec);
@@ -131,6 +132,7 @@ int perl_input_add(int source, int condition, SV *func, SV *data, int once)
rec = g_new0(PERL_SOURCE_REC, 1);
perl_source_ref(rec);
+ rec->once = once;
rec->script =script;
rec->func = perl_func_sv_inc(func, pkg);
rec->data = SvREFCNT_inc(data);