Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
irker
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iDB
irker
Commits
9fcc6717
Commit
9fcc6717
authored
11 years ago
by
Eric S. Raymond
Browse files
Options
Downloads
Patches
Plain Diff
Slightly more elegant fix, no need for new connectfail status.
parent
82442ed5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
irkerd
+3
-3
3 additions, 3 deletions
irkerd
with
3 additions
and
3 deletions
irkerd
+
3
−
3
View file @
9fcc6717
...
...
@@ -412,7 +412,7 @@ class Connection:
def
handle_disconnect
(
self
):
"
Server disconnected us for flooding or some other reason.
"
self
.
connection
=
None
if
self
.
status
!=
"
connectfail
"
:
if
self
.
status
!=
"
expired
"
:
self
.
status
=
"
disconnected
"
def
handle_kick
(
self
,
outof
):
"
We
'
ve been kicked.
"
...
...
@@ -480,7 +480,7 @@ class Connection:
# space forever would be a memory leak.
self
.
status
=
"
expired
"
break
elif
not
self
.
connection
and
self
.
status
!=
"
connectfail
"
:
elif
not
self
.
connection
and
self
.
status
!=
"
expired
"
:
# Queue is nonempty but server isn't connected.
with
self
.
irker
.
irc
.
mutex
:
self
.
connection
=
self
.
irker
.
irc
.
newserver
()
...
...
@@ -501,7 +501,7 @@ class Connection:
self
.
last_xmit
=
time
.
time
()
self
.
last_ping
=
time
.
time
()
except
IRCServerConnectionError
:
self
.
status
=
"
connectfail
"
self
.
status
=
"
expired
"
elif
self
.
status
==
"
handshaking
"
:
if
time
.
time
()
>
self
.
last_xmit
+
HANDSHAKE_TTL
:
self
.
status
=
"
expired
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment