mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Final socket fix
This commit is contained in:
@@ -115,6 +115,7 @@ angular.module('SocketIO', ['AuthService', 'Utilities'])
|
|||||||
});
|
});
|
||||||
self.socket.on('error', function(reason) {
|
self.socket.on('error', function(reason) {
|
||||||
var r = reason || 'connection refused by host';
|
var r = reason || 'connection refused by host';
|
||||||
|
console.error(reason)
|
||||||
$log.debug('Socket error: ' + r);
|
$log.debug('Socket error: ' + r);
|
||||||
$log.error('Socket error: ' + r);
|
$log.error('Socket error: ' + r);
|
||||||
self.scope.$apply(function() {
|
self.scope.$apply(function() {
|
||||||
@@ -153,10 +154,10 @@ angular.module('SocketIO', ['AuthService', 'Utilities'])
|
|||||||
checkStatus: function() {
|
checkStatus: function() {
|
||||||
// Check connection status
|
// Check connection status
|
||||||
var self = this;
|
var self = this;
|
||||||
if (self.socket.connected) {
|
if (self.socket.socket.connected) {
|
||||||
self.scope.socketStatus = 'ok';
|
self.scope.socketStatus = 'ok';
|
||||||
}
|
}
|
||||||
else if (self.socket.connecting || self.socket.reconnecting) {
|
else if (self.socket.socket.connecting || self.socket.reconnecting) {
|
||||||
self.scope.socketStatus = 'connecting';
|
self.scope.socketStatus = 'connecting';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user