nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42d7430
)
lib/libevent: remove duplicated check on `closed`
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 17 Nov 2015 14:36:03 +0000
(09:36 -0500)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/libevent.nit
b/lib/libevent.nit
index
7d98ac4
..
ddae7fe
100644
(file)
--- a/
lib/libevent.nit
+++ b/
lib/libevent.nit
@@
-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