Software /
code /
verse
Comparison
init.lua @ 322:819b35b8fcf6
verse: Add missing 'reason' argument to stream:close()
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 10 Feb 2013 02:50:02 +0100 |
parent | 281:1669dd08032a |
child | 325:843fabce2fc7 |
comparison
equal
deleted
inserted
replaced
321:369d4638d775 | 322:819b35b8fcf6 |
---|---|
141 self:event("outgoing-raw", data); | 141 self:event("outgoing-raw", data); |
142 return conn:write(data); | 142 return conn:write(data); |
143 end; | 143 end; |
144 end | 144 end |
145 | 145 |
146 function stream:close() | 146 function stream:close(reason) |
147 if not self.conn then | 147 if not self.conn then |
148 verse.log("error", "Attempt to close disconnected connection - possibly a bug"); | 148 verse.log("error", "Attempt to close disconnected connection - possibly a bug"); |
149 return; | 149 return; |
150 end | 150 end |
151 local on_disconnect = self.conn.disconnect(); | 151 local on_disconnect = self.conn.disconnect(); |