Commit af9718c
committed
Disconnect client only if Slack disconnect is intentional
If the disconnection from Slack is intentiona, just keep closing the IRC
client connection as previously. However, if the disconnection is not
intentional, it's not necessary to disconnect the IRC client, as the
Slack reconnection will be handled by Slack's RTM.ManageConnection.
This should reduce the amount of disconnect/reconnect on the IRC client
side.
Signed-off-by: Andrea Barberio <insomniac@slackware.it>1 parent 2570c60 commit af9718c
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
| 323 | + | |
323 | 324 | | |
324 | | - | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
325 | 335 | | |
326 | 336 | | |
327 | 337 | | |
| |||
0 commit comments