 		matches = response.match /\d+,([^,]+),\d+,\d+,\d+/
 		if matches
 			change_icon CONST.status.connected
+			clear_error()
 			callback && callback(
 				status: CONST.status.logged_in
 				username: matches[1]

# error end
###
fatal_error_handler = (err_code) ->
	auto_online_clear()
	#msg = if code of CONST.err_code_list then CONST.err_code_list[res] else res
	localStorage.setItem CONST.storageKey.auto_online, CONST.status.auto_online_off

###
lastError = null
set_error = (errorCode) ->
	#TODO
	#show send msg if popup is open
	chrome.browserAction.setBadgeText(
		text: '!'
	)
