1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

timeout_add_once() didn't work.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2783 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-05-13 13:50:45 +00:00 committed by cras
parent 15eaa7cc88
commit 9c038783a4

View File

@ -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);