1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

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:
Jared Tabor 2017-09-20 23:04:43 +00:00 committed by GitHub
commit d0cb11acb3

View File

@ -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){