Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update master

  • Loading branch information...
commit c4eb1770d1a5fd84200b848dc892b0545a168a8e 1 parent dbc13a8
semu authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/xmpp/connection.js
View
8 lib/xmpp/connection.js
@@ -124,9 +124,11 @@ Connection.prototype.send = function(stanza) {
if (stanza.root) {
var el = this.rmXmlns(stanza.root());
this.socket.serializeStanza(el, function(s) {
- if (self.socket.writable) {
- flushed = self.socket.write(s);
- }
+ if (self.socket.writable) {
+ self.socket.write(s);
+ } else {
+ self.error('internal-server-error', 'socket not writable');
+ }
});
} else {
flushed = this.socket.write(stanza);
Please sign in to comment.
Something went wrong with that request. Please try again.