mirror of
https://github.com/ansible/awx.git
synced 2026-03-20 18:37:39 -02:30
Merge pull request #444 from jaredevantabor/socket-fix
send last socket message if last socket didn't go thru due to socket …
This commit is contained in:
@@ -202,14 +202,7 @@ export default
|
|||||||
if(self.socket.readyState === 0){
|
if(self.socket.readyState === 0){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
console.log('inside timeout: ' + self.socket.readyState);
|
console.log('inside timeout: ' + self.socket.readyState);
|
||||||
self.socket.send(data, function () {
|
self.subscribe(self.getLast());
|
||||||
var args = arguments;
|
|
||||||
self.scope.$apply(function () {
|
|
||||||
if (callback) {
|
|
||||||
callback.apply(self.socket, args);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}, 500);
|
}, 500);
|
||||||
}
|
}
|
||||||
else if(self.socket.readyState === 1){
|
else if(self.socket.readyState === 1){
|
||||||
|
|||||||
Reference in New Issue
Block a user