| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 00c2eb7 commit e2c9a52
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -309,8 +309,8 @@ public void run() { | |||
| 309 | 309 | public void write(int data) { // will also cover char | |
| 310 | 310 | int index = 0; | |
| 311 | 311 | while (index < clientCount) { | |
| 312 | - clients[index].write(data); | ||
| 313 | 312 | if (clients[index].active()) { | |
| 313 | + clients[index].write(data); | ||
| 314 | 314 | index++; | |
| 315 | 315 | } else { | |
| 316 | 316 | removeIndex(index); | |
@@ -322,8 +322,8 @@ public void write(int data) { // will also cover char | |||
| 322 | 322 | public void write(byte data[]) { | |
| 323 | 323 | int index = 0; | |
| 324 | 324 | while (index < clientCount) { | |
| 325 | - clients[index].write(data); | ||
| 326 | 325 | if (clients[index].active()) { | |
| 326 | + clients[index].write(data); | ||
| 327 | 327 | index++; | |
| 328 | 328 | } else { | |
| 329 | 329 | removeIndex(index); | |
@@ -335,8 +335,8 @@ public void write(byte data[]) { | |||
| 335 | 335 | public void write(String data) { | |
| 336 | 336 | int index = 0; | |
| 337 | 337 | while (index < clientCount) { | |
| 338 | - clients[index].write(data); | ||
| 339 | 338 | if (clients[index].active()) { | |
| 339 | + clients[index].write(data); | ||
| 340 | 340 | index++; | |
| 341 | 341 | } else { | |
| 342 | 342 | removeIndex(index); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments