| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -186,9 +186,6 @@ function replaceHandle(self, newHandle) { | |||
| 186 | 186 | // Replace the existing handle by the handle we got from primary. | |
| 187 | 187 | oldHandle.close(); | |
| 188 | 188 | state.handle = newHandle; | |
| 189 | - // Check if the udp handle was connected and set the state accordingly | ||
| 190 | - if (isConnected(self)) | ||
| 191 | - state.connectState = CONNECT_STATE_CONNECTED; | ||
| 192 | 189 | } | |
| 193 | 190 | ||
| 194 | 191 | function bufferSize(self, size, buffer) { | |
@@ -292,10 +289,6 @@ Socket.prototype.bind = function(port_, address_ /* , callback */) { | |||
| 292 | 289 | if (err) | |
| 293 | 290 | throw errnoException(err, 'open'); | |
| 294 | 291 | ||
| 295 | - // Check if the udp handle was connected and set the state accordingly | ||
| 296 | - if (isConnected(this)) | ||
| 297 | - state.connectState = CONNECT_STATE_CONNECTED; | ||
| 298 | - | ||
| 299 | 292 | startListening(this); | |
| 300 | 293 | return this; | |
| 301 | 294 | } | |
@@ -553,16 +546,6 @@ function clearQueue() { | |||
| 553 | 546 | queueEntry(); | |
| 554 | 547 | } | |
| 555 | 548 | ||
| 556 | - function isConnected(self) { | ||
| 557 | - try { | ||
| 558 | - self.remoteAddress(); | ||
| 559 | - return true; | ||
| 560 | - } catch { | ||
| 561 | - return false; | ||
| 562 | - } | ||
| 563 | - } | ||
| 564 | - | ||
| 565 | - | ||
| 566 | 549 | // valid combinations | |
| 567 | 550 | // For connectionless sockets | |
| 568 | 551 | // send(buffer, offset, length, port, address, callback) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments