Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix noisiness when resuming unpaused handles in Gtk

  • Loading branch information...
commit e5feab8db2d662c9f8f848658242af3d479f9eed 1 parent 940a9ca
@rcaputo authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 lib/POE/Kernel.pm
View
12 lib/POE/Kernel.pm
@@ -2872,11 +2872,11 @@ sub select_resume_write {
# Turn the select vector's write bit back on.
vec($kr_vectors[VEC_WR], fileno($handle), 1) = 1;
- # Quietly ignore requests to resume unpaused handles.
- return 1 if defined $kr_handles{$handle}->[HND_WATCHERS]->[VEC_WR];
-
if (POE_USES_GTK) { # include
+ # Quietly ignore requests to resume unpaused handles.
+ return 1 if defined $kr_handles{$handle}->[HND_WATCHERS]->[VEC_WR];
+
$kr_handles{$handle}->[HND_WATCHERS]->[VEC_WR] =
Gtk::Gdk->input_add( fileno($handle), 'write',
\&_gtk_select_write_callback, $handle
@@ -2946,11 +2946,11 @@ sub select_resume_read {
# Turn the select vector's read bit back on.
vec($kr_vectors[VEC_RD], fileno($handle), 1) = 1;
- # Quietly ignore requests to resume unpaused handles.
- return 1 if defined $kr_handles{$handle}->[HND_WATCHERS]->[VEC_RD];
-
if (POE_USES_GTK) { # include
+ # Quietly ignore requests to resume unpaused handles.
+ return 1 if defined $kr_handles{$handle}->[HND_WATCHERS]->[VEC_RD];
+
$kr_handles{$handle}->[HND_WATCHERS]->[VEC_RD] =
Gtk::Gdk->input_add( fileno($handle), 'read',
\&_gtk_select_read_callback, $handle
Please sign in to comment.
Something went wrong with that request. Please try again.