Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0fe3cc80
authored
Aug 11, 2021
by
吴云建
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
538a1837
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
xim/xim.ts
xim/xim.ts
View file @
0fe3cc80
...
...
@@ -48,10 +48,11 @@ export class Xim {
if
(
this
.
client
.
connected
)
{
this
.
client
.
close
();
}
this
.
client
.
onconnected
=
emptyFunc
;
this
.
client
.
onmsg
=
emptyFunc
;
this
.
client
=
undefined
;
if
(
this
.
client
)
{
this
.
client
.
onconnected
=
emptyFunc
;
this
.
client
.
onmsg
=
emptyFunc
;
this
.
client
=
undefined
;
}
}
}
...
...
@@ -64,6 +65,7 @@ export class Xim {
this
.
close
();
token
().
then
((
t
)
=>
{
if
(
!
t
)
return
;
const
client
=
new
XChatClient
(
url
,
this
.
trimToken
(
t
));
this
.
client
=
client
;
...
...
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