Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-bitswap
Commits
8028bc49
Commit
8028bc49
authored
Feb 04, 2018
by
Jeromy
Committed by
Steven Allen
Feb 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shutdown notifications engine when closing a bitswap session
License: MIT Signed-off-by:
Jeromy
<
jeromyj@gmail.com
>
parent
c26feecf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
session.go
session.go
+1
-0
No files found.
session.go
View file @
8028bc49
...
...
@@ -83,6 +83,7 @@ func (bs *Bitswap) NewSession(ctx context.Context) *Session {
}
func
(
bs
*
Bitswap
)
removeSession
(
s
*
Session
)
{
s
.
notif
.
Shutdown
()
bs
.
sessLk
.
Lock
()
defer
bs
.
sessLk
.
Unlock
()
for
i
:=
0
;
i
<
len
(
bs
.
sessions
);
i
++
{
...
...
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