lib/libevent: remove duplicated check on `closed`
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 17 Nov 2015 14:36:03 +0000 (09:36 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 17 Nov 2015 16:24:19 +0000 (11:24 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/libevent.nit

index 7d98ac4..ddae7fe 100644 (file)
@@ -138,7 +138,7 @@ class Connection
        # Callback method on a write event
        fun write_callback
        do
-               if close_requested and not closed then close
+               if close_requested then close
        end
 
        private fun read_callback_native(cstr: NativeString, len: Int)
@@ -149,7 +149,7 @@ class Connection
        # Callback method when data is available to read
        fun read_callback(content: String)
        do
-               if close_requested and not closed then close
+               if close_requested then close
        end
 
        # Callback method on events