Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sfu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alain Takoudjou
sfu
Commits
71022f4b
Commit
71022f4b
authored
Sep 12, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ErrWriterDead, replace with ErrClientDead.
parent
abb8b70a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
webclient.go
webclient.go
+3
-4
No files found.
webclient.go
View file @
71022f4b
...
@@ -1177,8 +1177,7 @@ func clientWriter(conn *websocket.Conn, ch <-chan interface{}, done chan<- struc
...
@@ -1177,8 +1177,7 @@ func clientWriter(conn *websocket.Conn, ch <-chan interface{}, done chan<- struc
}
}
}
}
var
ErrWriterDead
=
errors
.
New
(
"client writer died"
)
var
ErrClientDead
=
errors
.
New
(
"client is dead"
)
var
ErrClientDead
=
errors
.
New
(
"client dead"
)
func
(
c
*
webClient
)
action
(
m
interface
{})
error
{
func
(
c
*
webClient
)
action
(
m
interface
{})
error
{
select
{
select
{
...
@@ -1194,7 +1193,7 @@ func (c *webClient) write(m clientMessage) error {
...
@@ -1194,7 +1193,7 @@ func (c *webClient) write(m clientMessage) error {
case
c
.
writeCh
<-
m
:
case
c
.
writeCh
<-
m
:
return
nil
return
nil
case
<-
c
.
writerDone
:
case
<-
c
.
writerDone
:
return
Err
Writer
Dead
return
Err
Client
Dead
}
}
}
}
...
@@ -1203,7 +1202,7 @@ func (c *webClient) close(data []byte) error {
...
@@ -1203,7 +1202,7 @@ func (c *webClient) close(data []byte) error {
case
c
.
writeCh
<-
closeMessage
{
data
}
:
case
c
.
writeCh
<-
closeMessage
{
data
}
:
return
nil
return
nil
case
<-
c
.
writerDone
:
case
<-
c
.
writerDone
:
return
Err
Writer
Dead
return
Err
Client
Dead
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment